implib.exe no output files

2017-06-18 Thread Joel via Digitalmars-d-learn
I got the file here: http://ftp.digitalmars.com/bup.zip It works on other computers. I was trying to update to the latest DAllegro (https://github.com/SiegeLord/DAllegro5). Though, I used another computer for the lib files and still couldn't get the latest DAllegro5 working.

Re: DMD, LDC, and GDC compilers and 32/64 bit

2017-06-18 Thread Eugene Wissner via Digitalmars-d-learn
On Sunday, 18 June 2017 at 16:08:36 UTC, Russel Winder wrote: I believe DMD, LDC, and GDC all have the -m32 or -m64 option to determine the word size of compiled object and executable. I also believe there are 32-bit and 64-bit builds of the three compilers. Or are there? It appears at some

Re: DMD, LDC, and GDC compilers and 32/64 bit

2017-06-18 Thread Eugene Wissner via Digitalmars-d-learn
On Sunday, 18 June 2017 at 17:57:28 UTC, Eugene Wissner wrote: On Sunday, 18 June 2017 at 16:08:36 UTC, Russel Winder wrote: I believe DMD, LDC, and GDC all have the -m32 or -m64 option to determine the word size of compiled object and executable. I also believe there are 32-bit and 64-bit

D structs weak identity and RAII

2017-06-18 Thread Boris-Barboris via Digitalmars-d-learn
Hello, I was trying to write some templated unique pointers. Idea was simple: struct UniquePointer that handles underlying pointer in RAII-style and WeakPointer struct that is spawned by UniquePointer. Weak pointer is handled differently in my collections, wich subscribe to the event of

Re: Simple c header => Dlang constants using mixins in compile time

2017-06-18 Thread Igor Shirkalin via Digitalmars-d-learn
On Sunday, 18 June 2017 at 16:02:38 UTC, Seb wrote: On Saturday, 17 June 2017 at 11:27:40 UTC, Igor Shirkalin wrote: On Saturday, 17 June 2017 at 11:23:52 UTC, Cym13 wrote: On Saturday, 17 June 2017 at 11:20:53 UTC, Igor Shirkalin wrote: [...] I'm sure others will have cleaner solutions as

Re: Simple c header => Dlang constants using mixins in compile time

2017-06-18 Thread Seb via Digitalmars-d-learn
On Saturday, 17 June 2017 at 11:27:40 UTC, Igor Shirkalin wrote: On Saturday, 17 June 2017 at 11:23:52 UTC, Cym13 wrote: On Saturday, 17 June 2017 at 11:20:53 UTC, Igor Shirkalin wrote: [...] I'm sure others will have cleaner solutions as as a quick hack you can read the file at compile

Re: Solution to "statement is not reachable" depending on template variables?

2017-06-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On Sunday, 18 June 2017 at 11:11:59 UTC, Johan Engelen wrote: On Sunday, 18 June 2017 at 09:56:50 UTC, Steven Schveighoffer wrote: On Sunday, 18 June 2017 at 09:28:57 UTC, Johan Engelen wrote: Reviving this thread to see whether anything has changed on the topic. If Timon gets static for

Getting the coverage data at runtime

2017-06-18 Thread Szabo Bogdan via Digitalmars-d-learn
Hi, I am wondering if there is any way of getting the code coverage at runtime... As a I seen in the runtime, the .lst files are created inside this module dealocator: https://github.com/dlang/druntime/blob/master/src/rt/cover.d#L152 and the `Cover[] gdata;` is private, so no way of

DMD, LDC, and GDC compilers and 32/64 bit

2017-06-18 Thread Russel Winder via Digitalmars-d-learn
I believe DMD, LDC, and GDC all have the -m32 or -m64 option to determine the word size of compiled object and executable. I also believe there are 32-bit and 64-bit builds of the three compilers. Or are there? It appears at some time in the past that some of the compilers when compiled as

Re: DMD, LDC, and GDC compilers and 32/64 bit

2017-06-18 Thread Basile B. via Digitalmars-d-learn
On Sunday, 18 June 2017 at 16:08:36 UTC, Russel Winder wrote: I believe DMD, LDC, and GDC all have the -m32 or -m64 option to determine the word size of compiled object and executable. I also believe there are 32-bit and 64-bit builds of the three compilers. Or are there? It appears at some

Re: implib.exe no output files

2017-06-18 Thread Ivan Kazmenko via Digitalmars-d-learn
On Sunday, 18 June 2017 at 07:41:27 UTC, Joel wrote: I got the file here: http://ftp.digitalmars.com/bup.zip It works on other computers. I was trying to update to the latest DAllegro (https://github.com/SiegeLord/DAllegro5). Though, I used another computer for the lib files and still

Re: Solution to "statement is not reachable" depending on template variables?

2017-06-18 Thread Johan Engelen via Digitalmars-d-learn
On Sunday, 18 June 2017 at 09:56:50 UTC, Steven Schveighoffer wrote: On Sunday, 18 June 2017 at 09:28:57 UTC, Johan Engelen wrote: Reviving this thread to see whether anything has changed on the topic. If Timon gets static for each into the language, it can look a little better. Can you

Manually calling postblots recursively

2017-06-18 Thread Johannes Loher via Digitalmars-d-learn
Hey, I'm trying to work on https://issues.dlang.org/show_bug.cgi?id=15708 so I decided it might be interesting to find a way to (recursively) call all postblits that belong to certain struct or static array. This is what I came up with so far: import std.traits; void callPostblits(S)(ref S

Re: Solution to "statement is not reachable" depending on template variables?

2017-06-18 Thread Moritz Maxeiner via Digitalmars-d-learn
On Sunday, 18 June 2017 at 11:11:59 UTC, Johan Engelen wrote: On Sunday, 18 June 2017 at 09:56:50 UTC, Steven Schveighoffer wrote: On Sunday, 18 June 2017 at 09:28:57 UTC, Johan Engelen wrote: Reviving this thread to see whether anything has changed on the topic. If Timon gets static for

Re: Solution to "statement is not reachable" depending on template variables?

2017-06-18 Thread Johan Engelen via Digitalmars-d-learn
Reviving this thread to see whether anything has changed on the topic. I now have this monster: ``` struct FMT { // has immutable members. FMT cannot be assigned to. } FMT monsterThatCompilerAccepts(T)(){ alias TP = Tuple!(__traits(getAttributes, T)); foreach(i, att; TP){

Re: Solution to "statement is not reachable" depending on template variables?

2017-06-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On Sunday, 18 June 2017 at 09:28:57 UTC, Johan Engelen wrote: Reviving this thread to see whether anything has changed on the topic. If Timon gets static for each into the language, it can look a little better. -Steve

Re: Manually calling postblots recursively

2017-06-18 Thread Basile B. via Digitalmars-d-learn
On Sunday, 18 June 2017 at 09:41:01 UTC, Johannes Loher wrote: Hey, I'm trying to work on https://issues.dlang.org/show_bug.cgi?id=15708 so I decided it might be interesting to find a way to (recursively) call all postblits that belong to certain struct or static array. This is what I came up