[fpc-devel] First pas2js public release

Michael Van Canneyt michael at freepascal.org
Mon Dec 18 00:36:00 CET 2017



On Sun, 17 Dec 2017, Benito van der Zander wrote:

> Hi,
>
>> 
>> Naturally, any memory pointer operation is not possible in Javascript. Code 
>> that relies on this will not work.
>
>
> it would be great, if pointers were added.

I really don't see the point of that. As Mattias pointed out, pointers to classes
exist. Very likely pointers to records will be added (because they are
object literals this is relatively easy), but that's about it.
Even so, pointer math is not possible, so I really don't see the benefit.

The idea is to be able to program the browser using a reasonable subset of
Object Pascal, not to port arbitrary pascal code. So if time must be allocated 
on new features, it most likely will not be on emulating pointers, but
rather on more high-level features.

Michael.



More information about the fpc-devel mailing list