On Mon, 18 May 2009 05:09:10 -0400, Don nos...@nospam.com wrote:
Vladimir Panteleev wrote:
Hello digitalmars.D,
I'm concerned about the cast() situation with D. Right now, we use the
same keyword and syntax to do three different things:
1) The obvious plain-old-data cast (casting one
grauzone wrote:
The worst thing about the current cast(T) operator is that it easily
allows reinterpret cast. This is SO NOT SAFE! Especially with arrays, it
doesn't do something what the user expects. It's a hidden reinterpret
cast. This really should be changed.
I use this functionality in
Hello digitalmars.D,
I'm concerned about the cast() situation with D. Right now, we use the same
keyword and syntax to do three different things:
1) The obvious plain-old-data cast (casting one pointer type to another,
structures, etc.)
2) Type conversion casts (casting floats to ints)
3)