typedefs are useless

Matti Niemenmaa see_signature at for.real.address
Mon Dec 3 11:28:07 PST 2007


Steven Schveighoffer wrote:
> I can do:
> 
> typedef long mytype;
> 
> However, I can't create literals of this type.  so if I want to initialize a 
> mytype value to 6, I have to do:
> 
> mytype x = cast(mytype)6L;
<snip>

Complained about in Issue 1335 and earlier. This is why I use aliases instead of
typedefs in all but the shortest of programs.

-- 
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi



More information about the Digitalmars-d mailing list