[fpc-pascal] Untyped var params

Lars noreply at z505.com
Sun Jan 8 00:02:08 CET 2017


On Sat, January 7, 2017 2:52 pm, Bart wrote:
> On 1/7/17, Andrew Hall <andrew.hall at shaw.ca> wrote:
>
>
>> If you cast your “something” to a typed pointer, the compiler will
>> do the work for you in the usual way:
>>
>
> But if you know that at forehand (and you know, since you cast it),
> why then use an untyped var parameter at all?
>

Some brave soldiers once tried to reinvent generics using these tricks..





More information about the fpc-pascal mailing list