Patronizing Language Design?
Walter Bright
newshound1 at digitalmars.com
Mon Jul 20 16:05:42 PDT 2009
Don wrote:
> We still have a problem with casting, I think. There are still too many
> places where it is required. Most of the time they are pretty harmless,
> but unfortunately cast() can also be used to do some really nasty stuff.
> eg,
> int a = cast(int)b;
> If b is 'uint', that's fine. But if b is immutable, or an object, that's
> a disgusting bit of code. And you can't whether it's harmless or a
> capital offence without looking at the definition of b. Another example
> of long-distance coupling.
I know.
More information about the Digitalmars-d
mailing list