Re: [fpc-devel] Pass compiler options to generics [was Delphi anonymous methods]

2013-03-06 Thread ListMember
On 2013-03-06 13:13, Alexander Klenin wrote: On Wed, Mar 6, 2013 at 10:00 PM, Michael Schnell wrote: On 03/05/2013 05:17 PM, Alexander Klenin wrote: 1) Make sure "is" and "as" work with generic types -- maybe they already are? "is" the generic type and/or "is" a certain specialization ? Yes,

Re: [fpc-devel] Pass compiler options to generics [was Delphi anonymous methods]

2013-03-06 Thread Alexander Klenin
On Wed, Mar 6, 2013 at 10:00 PM, Michael Schnell wrote: > On 03/05/2013 05:17 PM, Alexander Klenin wrote: >> >> 1) Make sure "is" and "as" work with generic types -- maybe they already >> are? > > "is" the generic type and/or "is" a certain specialization ? Yes, and also generic parameters. proce

Re: [fpc-devel] Pass compiler options to generics [was Delphi anonymous methods]

2013-03-06 Thread Michael Schnell
On 03/05/2013 05:17 PM, Alexander Klenin wrote: 1) Make sure "is" and "as" work with generic types -- maybe they already are? "is" the generic type and/or "is" a certain specialization ? -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.

Re: [fpc-devel] Pass compiler options to generics [was Delphi anonymous methods]

2013-03-05 Thread Alexander Klenin
On Tue, Mar 5, 2013 at 11:13 PM, ListMember wrote: > This brings me to wonder if it would be possible to pass some constant (or > set of constants, or something similar) to generic routine such that > this/these option(s) would be treated as compiles options within the > implementation of the gene

[fpc-devel] Pass compiler options to generics [was Delphi anonymous methods]

2013-03-05 Thread ListMember
On 2013-03-05 12:37, Sven Barth wrote: Thanks, I try my best :) I know you do. And, since generics has also been mentioned in this thread, here is something I'd like to table/mention (or, rather, use you as a sounding board, if I may). Sometimes writing generic routines that are truly gene