Re: [fpc-pascal] Constants in generics

2019-01-04 Thread Ryan Joseph


> On Jan 3, 2019, at 11:11 PM, Sven Barth via fpc-pascal 
>  wrote:
> 
> Fair enough. In that case support for constants in generics will have to wait 
> as well. 🤷‍

Who designed the generics btw? I’m not 100% certain that it’s even safe to 
change their design like this so it would be nice to hear from them. Inline 
specializations rely on tprocdef and if I change everything to work on symbols 
we could break generic procedure overloads.

One thing I can do to remove my dummy tgenericparamdef class is to keep a 
separate list of const syms in tspecializationcontext.

Regards,
Ryan Joseph

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Constants in generics

2019-01-04 Thread wkitty42

On 1/4/19 1:47 PM, Ryan Joseph wrote:



On Jan 3, 2019, at 11:11 PM, Sven Barth via fpc-pascal 
 wrote:

Fair enough. In that case support for constants in generics will have to wait 
as well. 🤷‍


Who designed the generics btw?



unless i'm highly mistaken, you've been talking to them... they're quoted above, 
even ;)



--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list unless*
   *a signed and pre-paid contract is in effect with us.*
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal