Re: [fpc-pascal] Managed record questions

2018-03-07 Thread Ryan Joseph
> On Mar 8, 2018, at 1:48 PM, Sven Barth via fpc-pascal > wrote: > > You could use an include file containing both the declaration and > implementation controlled by compiler defines together with a macro for the > type name. That’s a nice trick. If those records get adopted something “man

Re: [fpc-pascal] Managed record questions

2018-03-07 Thread Maciej Izak
2018-03-08 7:48 GMT+01:00 Sven Barth via fpc-pascal < fpc-pascal@lists.freepascal.org>: > You could use an include file containing both the declaration and > implementation controlled by compiler defines together with a macro for the > type name. > Very improper and totally bad approach. This is

Re: [fpc-pascal] Managed record questions

2018-03-07 Thread Maciej Izak
2018-03-08 4:13 GMT+01:00 Ryan Joseph : > 1) Given the example below we have a template for a standard ref counted > record. Shouldn’t there be some “meta record” type that implements this > automatically? I’m thinking about adding this to some types but the idea of > recreating this same template

Re: [fpc-pascal] Managed record questions

2018-03-07 Thread Sven Barth via fpc-pascal
Am 08.03.2018 04:44 schrieb "Ryan Joseph" : 1) Given the example below we have a template for a standard ref counted record. Shouldn’t there be some “meta record” type that implements this automatically? I’m thinking about adding this to some types but the idea of recreating this same template eve

[fpc-pascal] Managed record questions

2018-03-07 Thread Ryan Joseph
So in the trunk we have managed records now which is a brilliant addition and long overdue. Some questions these bring up: 1) Given the example below we have a template for a standard ref counted record. Shouldn’t there be some “meta record” type that implements this automatically? I’m thinking