reddit discussion on replacing Python in 0install
Walter Bright
newshound2 at digitalmars.com
Mon Jun 10 17:27:25 PDT 2013
On 6/10/2013 4:26 PM, Jesse Phillips wrote:
> On Monday, 10 June 2013 at 22:06:29 UTC, Anthony Goins wrote:
>> If you want to know what happens on my linux box
>>
>> 1 module hellotest;
>> 2
>> 3 import std.stdio;
>> 4
>> 5 void main()
>> 6 {
>> 7 writeln("hello world.");
>> 8 }
>>
>> anthony at LinuxGen12:~/projects/temp$ ./hellotest
>> hello world.
>> anthony at LinuxGen12:~/projects/temp$ ./hellotest 1</dev/null; echo status : $?
>> status : 0
>> anthony at LinuxGen12:~/projects/temp$
>
> So D fails the test too. But now that I think about it, isn't /dev/null where
> you write data to a black hole... maybe he meant /dev/zero
Yeah, I thought /dev/null was a bit bucket. D shouldn't fail on writing to that,
and didn't.
More information about the Digitalmars-d
mailing list