Daniel Gibson:

> No. Casting other structs (*not* pointer to struct) is in fact illegal.
> (This just occured to me, I didn't think of this when writing the other
> post)

Right, sorry.


> So my only remaining objection is: Allowing it doesn't hurt (IMHO) and
> disallowing may break existing code, so why bother ;)

It makes the language more ugly, more complex, and it will cause bugs and 
problems, as all other similar muddy shortcuts.

I have a bug report about this that is sleeping there since 2010-03-20, among 
several other reports of similar anti-features:
http://d.puremagic.com/issues/show_bug.cgi?id=3990

I don't need a perfect language, but I fail to understand why similar little 
pieces of trash are wanted in any language.

bearophile

Reply via email to