Lints, Condate and bugs

"Jérôme M. Berger" jeberger at free.fr
Fri Oct 29 10:04:03 PDT 2010


Jonathan M Davis wrote:
> Personally, I think that both would be horrible. Having const is great, and 
> having non-nullable references could be great, but I sure wouldn't want them to 
> be the default. In addition to that, however, having them as the default would 
> make porting code from other C-based languages a total nightmare - not to 
> mention it totally shatters the general principle that either C/C++ code is 
> valid D code with the exact same behavior it doesn't compile. That alone makes 
> making them the default untenable.
> 
	How does making const and/or non-nullable default break this
principle? If the code relies on nullable variables, then it won't
compile, otherwise it will work exactly the same way as C.

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101029/258ad796/attachment.pgp>


More information about the Digitalmars-d mailing list