Program logic bugs vs input/environmental errors

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 3 22:01:51 PDT 2014


On Sat, 04 Oct 2014 04:36:48 +0000
eles via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> > sorry. i meant that compiler WILL be in unknown state if it will
> > continute to processing invalid source. that's why it should 
> > stop right
> > after the first error.
> No. It might produce an invalid product. Just like a real 
> engineer could produce a flawed product on the basis of wrong 
> designs.
i can't see any sane reason to process garbage data, 'cause result is
known to be garbage too.

> Could we add a flag to the compiler for that?
> 
> -cassandramode=[yes/no/whatever]
> 
> Joke :)
but this will be fine. let beginners get suggestions about importing
'std.stdio' on unknown 'writeln', but don't spit that on me. i tend to
read compiler messages, and additional noise is annoying.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141004/79c503a5/attachment.sig>


More information about the Digitalmars-d mailing list