How to use sprintf
bearophile
bearophileHUGS at lycos.com
Mon Apr 25 11:16:39 PDT 2011
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
More information about the Digitalmars-d
mailing list