Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Kagamin via Digitalmars-d-learn
Can depend on how you compile resources.

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 21 September 2014 at 10:56:38 UTC, Kagamin wrote: Can depend on how you compile resources. true, but I do not know what should I do to compile the resource so that it is accepted.

Re: How does GC.addRange work?

2014-09-21 Thread Gary Willoughby via Digitalmars-d-learn
On Saturday, 20 September 2014 at 23:08:08 UTC, ketmar via Digitalmars-d-learn wrote: On Sat, 20 Sep 2014 22:21:13 + Gary Willoughby via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: So zeroing values will inform the GC the reference has gone? yes. Thanks, i just wanted

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Kagamin via Digitalmars-d-learn
MinGW resource compiler can compile to both res and coff. For ms AFAIK (didn't use) the compiled resource should be additionally converted to coff.

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 21 September 2014 at 19:45:58 UTC, Kagamin wrote: MinGW resource compiler can compile to both res and coff. For ms AFAIK (didn't use) the compiled resource should be additionally converted to coff. how to compile in mingw-w64 resource compiler? never used mingw :( instalai the

Re: destroy(someStruct)

2014-09-21 Thread monarch_dodra via Digitalmars-d-learn
On Saturday, 20 September 2014 at 22:46:10 UTC, John Colvin wrote: import core.stdc.stdio; struct S { ~this() { printf(%x\n.ptr, this); } } void main() { S* sp = new S; destroy(*sp); S s; destroy(s); auto sa = new

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread ketmar via Digitalmars-d-learn
On Sun, 21 Sep 2014 20:13:41 + Cassio Butrico via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: how to compile in mingw-w64 resource compiler? it tooks the standard text .rc files and produces .res of COFF. smth like: === r.rc === #include windows.h 1024 ICON icon.ico

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 21 September 2014 at 21:41:41 UTC, ketmar via Digitalmars-d-learn wrote: On Sun, 21 Sep 2014 20:13:41 + Cassio Butrico via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: how to compile in mingw-w64 resource compiler? it tooks the standard text .rc files and

Re: core.thread.Fiber --- runtime stack overflow unlike goroutines

2014-09-21 Thread Martin Nowak via Digitalmars-d-learn
Am I missing something? Is there a clean and simple way to get Fiber to no longer suffer a stack overflow when implementing D-routines? Simply choose a big enough stack size when creating your fibers. http://dlang.org/library/core/thread/Fiber.this.html It's fairly cheap to use a really big

put string[] into a appender without loop?

2014-09-21 Thread AsmMan via Digitalmars-d-learn
I'd like to copy an array string into a appender!string() but I can't see how to do this without loop myself over the string array. Is there a native function or should I write it myself?

Re: put string[] into a appender without loop?

2014-09-21 Thread AsmMan via Digitalmars-d-learn
On Sunday, 21 September 2014 at 23:41:58 UTC, AsmMan wrote: I'd like to copy an array string into a appender!string() but I can't see how to do this without loop myself over the string array. Is there a native function or should I write it myself? call: auto app = appender!string();

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 21 September 2014 at 22:07:47 UTC, Cassio Butrico wrote: On Sunday, 21 September 2014 at 21:41:41 UTC, ketmar via Digitalmars-d-learn wrote: On Sun, 21 Sep 2014 20:13:41 + Cassio Butrico via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: how to compile in

Re: put string[] into a appender without loop?

2014-09-21 Thread ketmar via Digitalmars-d-learn
On Sun, 21 Sep 2014 23:41:56 + AsmMan via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: I'd like to copy an array string into a appender!string() but I can't see how to do this without loop myself over the string array. Is there a native function or should I write it

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread ketmar via Digitalmars-d-learn
On Sun, 21 Sep 2014 23:46:05 + Cassio Butrico via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: The problem is how to convert COFF r.res in r.res OMF. resulting '.res' is not COFF, it's windows resource file format. some linkers supports it directly, but i'm not sure about VS

Re: put string[] into a appender without loop?

2014-09-21 Thread ketmar via Digitalmars-d-learn
On Mon, 22 Sep 2014 02:51:41 +0300 ketmar via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: sorry, forgot that. i misunderstood your question. signature.asc Description: PGP signature

Re: core.thread.Fiber --- runtime stack overflow unlike goroutines

2014-09-21 Thread Martin Nowak via Digitalmars-d-learn
On 08/15/2014 05:09 PM, Sean Kelly wrote: At least on OSX, it appears that mapping memory is constant time regardless of size, but there is some max total memory I'm allowed to map, presumably based on the size of a vmm lookup tabe. The max block size I can allocate is 1 GB, and I can allocate

Re: put string[] into a appender without loop?

2014-09-21 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 21 September 2014 at 23:48:59 UTC, AsmMan wrote: On Sunday, 21 September 2014 at 23:41:58 UTC, AsmMan wrote: I'd like to copy an array string into a appender!string() but I can't see how to do this without loop myself over the string array. Is there a native function or should I

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Cassio Butrico via Digitalmars-d-learn
On Sunday, 21 September 2014 at 23:53:34 UTC, ketmar via Digitalmars-d-learn wrote: On Sun, 21 Sep 2014 23:46:05 + Cassio Butrico via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: The problem is how to convert COFF r.res in r.res OMF. resulting '.res' is not COFF, it's

Re: put string[] into a appender without loop?

2014-09-21 Thread AsmMan via Digitalmars-d-learn
On Monday, 22 September 2014 at 00:09:22 UTC, Vladimir Panteleev wrote: On Sunday, 21 September 2014 at 23:48:59 UTC, AsmMan wrote: On Sunday, 21 September 2014 at 23:41:58 UTC, AsmMan wrote: I'd like to copy an array string into a appender!string() but I can't see how to do this without loop

Re: put string[] into a appender without loop?

2014-09-21 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 22 September 2014 at 00:18:03 UTC, AsmMan wrote: this give undefined identifier: 'put' error. (std.array is already included, buffer.put(string) doesn't give same error) You need to import std.range. The copy of an array doesn't happen often as string but do suggest to I want

Re: put string[] into a appender without loop?

2014-09-21 Thread AsmMan via Digitalmars-d-learn
On Monday, 22 September 2014 at 00:30:44 UTC, Vladimir Panteleev wrote: On Monday, 22 September 2014 at 00:18:03 UTC, AsmMan wrote: this give undefined identifier: 'put' error. (std.array is already included, buffer.put(string) doesn't give same error) You need to import std.range. Thanks,

Re: Unicode arithmetic at run-time

2014-09-21 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 21 September 2014 at 03:13:19 UTC, Adam D. Ruppe wrote: writefln(%c, cast(dchar)('\U0001F0A1'+1)); A bit less ugly: writefln(%c, dchar('\U0001F0A1'+1));

Re: Unicode arithmetic at run-time

2014-09-21 Thread ketmar via Digitalmars-d-learn
On Mon, 22 Sep 2014 01:02:32 + Vladimir Panteleev via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: A bit less ugly: writefln(%c, dchar('\U0001F0A1'+1)); this won't work in gdc, though: 2.066 it not landed yet. signature.asc Description: PGP signature

Re: how to create and compile reesources for dmd 64

2014-09-21 Thread Cassio Butrico via Digitalmars-d-learn
On Monday, 22 September 2014 at 00:12:11 UTC, Cassio Butrico wrote: On Sunday, 21 September 2014 at 23:53:34 UTC, ketmar via Digitalmars-d-learn wrote: On Sun, 21 Sep 2014 23:46:05 + Cassio Butrico via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: The problem is how to

Can't get Visual D to come up. No warnings, no errors, no nothing

2014-09-21 Thread WhatMeWorry via Digitalmars-d-learn
Anybody installed Visual D recently? As per the install instructions, I downloaded the Visual Studio isolated Shell 2013 and its integrated package. Everything went smoothly. I then downloaded Visual D and installed it with no problems. However, when I try to run the vdserver.exe

Re: Can't get Visual D to come up. No warnings, no errors, no nothing

2014-09-21 Thread Vladimir Panteleev via Digitalmars-d-learn
On Monday, 22 September 2014 at 03:21:44 UTC, WhatMeWorry wrote: Anybody installed Visual D recently? As per the install instructions, I downloaded the Visual Studio isolated Shell 2013 and its integrated package. Everything went smoothly. I then downloaded Visual D and installed it with