Reimplementing the bulk of std.meta iteratively

Walter Bright newshound2 at digitalmars.com
Thu Oct 1 08:59:04 UTC 2020


On 10/1/2020 12:51 AM, Timon Gehr wrote:
> Maybe this is related to what you mean?
> 
> type t = readln().strip()=="int"?int:double;
> auto f = (t x)=>x;


As D is a statically typed language, I don't see how that can ever work.


More information about the Digitalmars-d mailing list