[fpc-devel] Type range in generic

Ryan Joseph ryan at thealchemistguild.com
Mon Dec 3 05:03:34 CET 2018



> On Dec 3, 2018, at 6:33 AM, Simon Jackson <jackokring at gmail.com> wrote:
> 
> Just an idea.
> 
> Class variables. If generics are used, then the same code can be used for differing pointer types. (Classes) as long as a specifier on the "generic class variable" and no generic specialize or <> is in the
> 
> class generic x: TObject;
> 
> Can it be shared across all generics of a kind?
> 
> The code density in the cache would be good for all common generics.

I don’t get what this is trying to accomplish or how it’s used. Example?

Regards,
	Ryan Joseph




More information about the fpc-devel mailing list