Error: cannot return non-void from void function
Daniel Kozak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Nov 27 13:25:10 PST 2014
Dne Thu, 27 Nov 2014 22:21:52 +0100 ketmar via Digitalmars-d-learn
<digitalmars-d-learn at puremagic.com> napsal(a):
> On Thu, 27 Nov 2014 21:14:57 +0000
> Daniel Kozak via Digitalmars-d-learn
> <digitalmars-d-learn at puremagic.com> wrote:
>
>> import core.runtime;
>> import std.c.process;
>> writeln("Can't find input file with list of links.");
>> Runtime.terminate();
>> exit(1);
> please-please-please don't teach people that! using such features
> requiring deep understanding of how D runtime works, and how it
> interacts with C runtime, with GC, with stack objects and so on.
>
> it's better to now show people bad samples instead of telling them
> "don't do what i just wrote". ;-)
I know, I just can't help myself :).
More information about the Digitalmars-d-learn
mailing list