dst = src rather than src dst

Alexander Panek alexander.panek at brainsware.org
Thu Sep 6 00:12:53 PDT 2007


Christopher Wright wrote:
> Is that:
> class Bar;
> alias Foo as Bar; // treat identifier Foo the same as Bar
> 
> or:
> class Foo;
> alias Foo as Bar; // refer to Foo as Bar
> 
> And I'm a native English speaker.
> 
> On the other hand, the equals sign is quite unambiguous because it's a 
> close analogy to existing assignments.

Actually that "[as]" wasn't a proposition to /change/ the syntax, but 
rather a hint for people who might find the order unintuitive. 
Personally I don't have a problem with it, as it's simple and straight 
forwards alias one thing as another. (That's like with x86 assembly: 
Intel syntax is mov DST, SRC; AT&T syntax is mov SRC, DST -- if AT&T 
wasn't so unreadable in all other aspects, I'd go for it just because of 
the order of operands.)

I'm all against the equal sign, because it's used in completely 
different terms. Assigning one type to the other just doesn't look right.

Kind regards,
Alex



More information about the Digitalmars-d mailing list