[fpc-pascal] Open array in object constructor gives error

Marc Weustink marc at dommelstein.nl
Tue Jan 3 14:39:21 CET 2023



On 3-1-2023 14:07, Hairy Pixels via fpc-pascal wrote:
> 
> 
>> On Jan 3, 2023, at 3:12 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
>>
>> But then you don't use the type name either. You simply do "o.Create(...)".
>>
> 
> Ohhhh I get it now. I didn’t realize you couldn’t create on the type. That breaks my entire design then. It would be great to have a modern object that behaved more like classes but on the stack (like C++ does).

On what instance/variable/piece of memory would your code 
"TMyObject.Create(['1', '2', '3'])" then operate ?

Marc


More information about the fpc-pascal mailing list