Re: [fpc-pascal] All methods vitrual ?

2023-10-09 Thread Adriaan van Os via fpc-pascal
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

Re: [fpc-pascal] All methods vitrual ?

2023-10-09 Thread Sven Barth via fpc-pascal
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

Re: [fpc-pascal] All methods vitrual ?

2023-10-09 Thread Sven Barth via fpc-pascal
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

[fpc-pascal] All methods vitrual ?

2023-10-09 Thread Adriaan van Os via fpc-pascal
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

[fpc-pascal] All methods vitrual ?

2023-10-09 Thread Adriaan van Os via fpc-pascal
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

Re: [fpc-pascal] fpc webassembly and node

2023-10-09 Thread Michael Van Canneyt via fpc-pascal
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

Re: [fpc-pascal] fpc webassembly and node

2023-10-09 Thread Michael Van Canneyt via fpc-pascal
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

[fpc-pascal] fpc webassembly and node

2023-10-09 Thread k1 via fpc-pascal
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