Re: I seem to be able to crash writefln

2011-03-09 Thread spir
On 03/10/2011 12:19 AM, Joel Christensen wrote: This is on Windows 7. Using a def file to stop the terminal window coming up. win.def EXETYPE NT SUBSYSTEM WINDOWS bug.d import std.stdio; import std.string; void main() { auto f = File( "z.txt", "w" ); scope( exit ) f.close; string foo = "bar";

Re: I seem to be able to crash writefln

2011-03-09 Thread Joel Christensen
On 10-Mar-11 1:04 PM, spir wrote: On 03/10/2011 12:19 AM, Joel Christensen wrote: This is on Windows 7. Using a def file to stop the terminal window coming up. win.def EXETYPE NT SUBSYSTEM WINDOWS bug.d import std.stdio; import std.string; void main() { auto f = File( "z.txt", "w" ); scope( e

Re: I seem to be able to crash writefln

2011-03-09 Thread Andrew Wiley
On Wed, Mar 9, 2011 at 5:19 PM, Joel Christensen wrote: > This is on Windows 7. Using a def file to stop the terminal window coming > up. > > win.def > EXETYPE NT > SUBSYSTEM WINDOWS > > bug.d > import std.stdio; > import std.string; > > void main() { >        auto f = File( "z.txt", "w" ); >    

Re: I seem to be able to crash writefln

2011-03-09 Thread Jonathan M Davis
On Wednesday 09 March 2011 23:15:13 Andrew Wiley wrote: > On Wed, Mar 9, 2011 at 5:19 PM, Joel Christensen wrote: > > This is on Windows 7. Using a def file to stop the terminal window coming > > up. > > > > win.def > > EXETYPE NT > > SUBSYSTEM WINDOWS > > > > bug.d > > import std.stdio; > > imp

Re: I seem to be able to crash writefln

2011-03-09 Thread Andrew Wiley
On Thu, Mar 10, 2011 at 1:31 AM, Jonathan M Davis wrote: > On Wednesday 09 March 2011 23:15:13 Andrew Wiley wrote: >> On Wed, Mar 9, 2011 at 5:19 PM, Joel Christensen wrote: >> > This is on Windows 7. Using a def file to stop the terminal window coming >> > up. >> > >> > win.def >> > EXETYPE NT >

Re: I seem to be able to crash writefln

2011-03-10 Thread Steven Schveighoffer
On Wed, 09 Mar 2011 18:19:55 -0500, Joel Christensen wrote: This is on Windows 7. Using a def file to stop the terminal window coming up. win.def EXETYPE NT SUBSYSTEM WINDOWS bug.d import std.stdio; import std.string; void main() { auto f = File( "z.txt", "w" ); scope( ex

Re: I seem to be able to crash writefln

2011-03-10 Thread Ary Manzana
On 3/10/11 4:15 AM, Andrew Wiley wrote: On Wed, Mar 9, 2011 at 5:19 PM, Joel Christensen wrote: This is on Windows 7. Using a def file to stop the terminal window coming up. win.def EXETYPE NT SUBSYSTEM WINDOWS bug.d import std.stdio; import std.string; void main() { auto f = File( "

Re: I seem to be able to crash writefln

2011-03-10 Thread Ary Manzana
On 3/10/11 4:40 AM, Andrew Wiley wrote: On Thu, Mar 10, 2011 at 1:31 AM, Jonathan M Davis wrote: On Wednesday 09 March 2011 23:15:13 Andrew Wiley wrote: On Wed, Mar 9, 2011 at 5:19 PM, Joel Christensen wrote: This is on Windows 7. Using a def file to stop the terminal window coming up. win.

Re: I seem to be able to crash writefln

2011-03-10 Thread bearophile
Ary Manzana: > It works because it's a specialized syntax for foreach. Oh, and I think > in case statements you can use it too, but I don't remember if the first > was inclusive and the second exclusive, or both, or what. But... it just > works for those cases. For the rest you have to use iota

Re: I seem to be able to crash writefln

2011-03-11 Thread Spacen Jasset
On 10/03/2011 12:18, Steven Schveighoffer wrote: On Wed, 09 Mar 2011 18:19:55 -0500, Joel Christensen wrote: This is on Windows 7. Using a def file to stop the terminal window coming up. win.def EXETYPE NT SUBSYSTEM WINDOWS bug.d import std.stdio; import std.string; void main() { auto f = F

Re: I seem to be able to crash writefln

2011-03-14 Thread Steven Schveighoffer
On Fri, 11 Mar 2011 18:57:32 -0500, Spacen Jasset wrote: On 10/03/2011 12:18, Steven Schveighoffer wrote: On Wed, 09 Mar 2011 18:19:55 -0500, Joel Christensen wrote: This is on Windows 7. Using a def file to stop the terminal window coming up. win.def EXETYPE NT SUBSYSTEM WINDOWS bug.d

Re: I seem to be able to crash writefln

2011-03-15 Thread Joel Christensen
On 15/03/2011 1:57 a.m., Steven Schveighoffer wrote: On Fri, 11 Mar 2011 18:57:32 -0500, Spacen Jasset wrote: On 10/03/2011 12:18, Steven Schveighoffer wrote: On Wed, 09 Mar 2011 18:19:55 -0500, Joel Christensen wrote: This is on Windows 7. Using a def file to stop the terminal window comi