Re: allocate array with new

2012-05-15 Thread Ondrej Pokorny
On Tuesday, 15 May 2012 at 12:36:30 UTC, Dmitry Olshansky wrote: On 15.05.2012 16:27, Ondrej Pokorny wrote: On Tuesday, 15 May 2012 at 09:44:08 UTC, Jonathan M Davis wrote: On Tuesday, May 15, 2012 11:26:49 Namespace wrote: On Tuesday, 15 May 2012 at 09:23:51 UTC, Kagamin wrote: > Differe

Re: allocate array with new

2012-05-15 Thread Ondrej Pokorny
On Tuesday, 15 May 2012 at 09:44:08 UTC, Jonathan M Davis wrote: On Tuesday, May 15, 2012 11:26:49 Namespace wrote: On Tuesday, 15 May 2012 at 09:23:51 UTC, Kagamin wrote: > Difference with what? > new is a safe feature: it allocates in the GC heap That's what i mean. So i have to delete it you

Re: std.mmfile issues

2012-05-14 Thread Ondrej Pokorny
On Monday, 14 May 2012 at 05:57:49 UTC, Ondrej Pokorny wrote: Hi all, I am trying to use std.mmfile on Win 7 64 bit, compiler dmd 32 2.059 MmFile memoryFile = new MmFile("test"); I receive this error: std.exception.ErrnoException@std\mmfile.d(270): (No error) which is a

std.mmfile issues

2012-05-13 Thread Ondrej Pokorny
Hi all, I am trying to use std.mmfile on Win 7 64 bit, compiler dmd 32 2.059 MmFile memoryFile = new MmFile("test"); I receive this error: std.exception.ErrnoException@std\mmfile.d(270): (No error) which is a little bit confusing for beginner. Am I using it in wrong way? I am trying to a