Administrator
|
In reply to this post by leledumbo
Am 16.04.2013 16:56 schrieb "leledumbo" <[hidden email]>: As the compiler tells you: A is not a defined type. The compiler needs to know the complete type before it can use any type defined in there and in this case the full type is "TType1<A, String>" where both types must come from outside the type. > but this code: This must only work if you write "generic TType2<A> =...". Otherwise this is a bug. One can argue however that the following should be valid as well (AFAIK it is not currently): === example begin === type === example end === Regards, _______________________________________________ fpc-pascal maillist - [hidden email] http://lists.freepascal.org/mailman/listinfo/fpc-pascal |
Am 17.04.2013 02:11 schrieb "leledumbo" <[hidden email]>: You're missing the <A> again. :) > but this one is: Not currently. It might be a useful extension however. I'll need to test what Delphi says about this... Regards, _______________________________________________ fpc-pascal maillist - [hidden email] http://lists.freepascal.org/mailman/listinfo/fpc-pascal |
Administrator
|
Am 17.04.2013 11:11, schrieb leledumbo:
>> You're missing the again. :) > *self-headcut Can it be that your E-Mail client misinterprets the "<...>" (with only one string as "value") as HTML tags? Because I can't see the "<A>" I had written to you in your quotation. >> Not currently. It might be a useful extension however. I'll need to test >> what Delphi says about this... > OK, I'll wait So... Delphi does not support that, but I still think that this is a valid extension of generics and can be used for all generic-able types instead of only classes. Regards, Sven _______________________________________________ fpc-pascal maillist - [hidden email] http://lists.freepascal.org/mailman/listinfo/fpc-pascal |
Free forum by Nabble | Edit this page |