typedef redux
Moritz Warning
moritzwarning at web.de
Fri Nov 13 05:01:27 PST 2009
On Thu, 12 Nov 2009 09:37:07 -0600, Andrei Alexandrescu wrote:
> My perception following the discussion around typedef is that we should
> eliminate it. What we offer is "alias", which is a generalization of C's
> "typedef", and the change of name is justified by the fact that "alias"
> defines aliases for more entities than just types.
>
> Does all that sound good?
>
>
> Andrei
Sounds good to me.
typedef void* FooRef;
can be replaced by (at least in most cases):
struct Foo {};
alias Foo* FooRef;
More information about the Digitalmars-d
mailing list