reddit.com: first Chapter of TDPL available for free
Michiel Helvensteijn
m.helvensteijn.remove at gmail.com
Tue Aug 4 08:32:51 PDT 2009
"The compiler allows omitting type declarations only when types can be
unambiguously inferred from context."
That's not exactly true, is it? A small non-negative integer literal could
be an integer of any width or signedness. Yet 'int' is arbitrarily chosen
for some reason. There are also multiple floating point types.
My points:
* The line I quoted is incorrect. Int/float literals are not unambiguous.
* D literals can have a suffix specifying the exact type. Perhaps that's
worth mentioning.
I find your style of writing a bit too informal, though easy to read.
--
Michiel Helvensteijn
More information about the Digitalmars-d
mailing list