Le samedi 4 août 2018 16:38:00 UTC+2, gmhwxi a écrit :
>
> […]
> >>var h:t = lam@() => ()// <-- here
>
> 'var h:t' means that the size of 'h' is that of the size of 't'.
> It does NOT mean that only a value of the type 't' can be
> stored in 'h'.
>
Indeed, if I do what’s below, the function
>>viewtypedef t = () - void
The type 't' is very special: it does not have a known size!
Such a type (like a flat array type) can only be used for call-by-reference.
>>var h:t = lam@() => ()// <-- here
'var h:t' means that the size of 'h' is that of the size of 't'.
It does NOT mean that only a