Hi guys,
i have a question concerning webassembly,
please let me know if this is the wrong list.
is it possible to use classes and compile to webassemly,
the following code is working well but wen i uncomment the constructor
line
the code can be compiled but will not run anymore
RuntimeErro
Hello,
Either list is fine.
This should compile and work.
I'm using webassembly and classes quite a lot, even with threading,
so I see no reason why this simple code should not run.
How did you start the webassembly ?
How much memory did you provide to the webassembly ?
Did you use pas2j
On Mon, 9 Oct 2023, Michael Van Canneyt via fpc-pascal wrote:
Hello,
Either list is fine.
This should compile and work.
I'm using webassembly and classes quite a lot, even with threading, so I see
no reason why this simple code should not run.
How did you start the webassembly ? How mu
Is there a trick to make (in mode macpas) all class methods implicitely virtual ? I mean, without
adding the virtual keyword to all of them ? The reason is that I want to create a tree view of the
class hierarchy with all the method names (not just those that are normally in the VMT because they
Is there a trick to make (in mode macpas) all class methods implicitely virtual ? I mean, without
adding the virtual keyword to all of them ? The reason is that I want to create a tree view of the
class hierarchy with all the method names (not just those that are normally in the VMT because they
Adriaan van Os via fpc-pascal schrieb am
Mo., 9. Okt. 2023, 14:29:
> Is there a trick to make (in mode macpas) all class methods implicitely
> virtual ? I mean, without
> adding the virtual keyword to all of them ? The reason is that I want to
> create a tree view of the
> class hierarchy with al
Adriaan van Os via fpc-pascal schrieb am
Mo., 9. Okt. 2023, 15:44:
> > Is there a trick to make (in mode macpas) all class methods implicitely
> virtual ? I mean, without
> > adding the virtual keyword to all of them ? The reason is that I want to
> create a tree view of the
> > class hierarchy w
Sven Barth via fpc-pascal wrote:
No. Only those in the published section are part of the vMethodTable.
And when compiled with $M+ the default visibility is changed from public
to published.
OK, but that means that by explicitely specifying public/private/protected for fields and published
f
On Mon, 9 Oct 2023, Adriaan van Os via fpc-pascal wrote:
Is there a trick to make (in mode macpas) all class methods implicitely
virtual ? I mean, without adding the virtual keyword to all of them ? The
reason is that I want to create a tree view of the class hierarchy with all
the method n