On Tue, Dec 31, 2013 at 6:33 AM, Sven Barth <[email protected]> wrote: > Am 31.12.2013 00:48 schrieb "Dmitry Boyarintsev" > <[email protected]>: > > >> >> Some new syntax has to be introduced to avoid the warning. Something like: >> >> type >> TMyRec = record >> record procedure Print; >> end; >> >> record procedure TMyRec.Print; >> begin >> writeln('foo'); >> end; > > We don't need a new syntax for something that already works: > > === code begin === > > type > TMyRec = record > class procedure Print; static; > end; > > class procedure TMyRec.Print; > > > begin > writeln('foo'); > end; > > begin > TMyRec.Print; > end. > > === code end === > > Regards, > Sven
Yes, but if is need to use like this, is better using the sintaxe Unit.Function... I would like to use a variable (short name) but without initialize it (Constructor). Regards, Marcos Douglas _______________________________________________ fpc-pascal maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
