Re: Compile time mapping

2019-05-11 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 11 May 2019 at 15:48:44 UTC, Bogdan wrote: What would be the most straight-forward way of mapping the members of an enum to the members of another enum (one-to-one mapping) at compile time? I'd probably have either a definition of one in terms of the other: enum Other { a =

Re: Nothing at all compiles with -m64 on Windows

2019-05-11 Thread Andre Pany via Digitalmars-d-learn
On Saturday, 11 May 2019 at 09:59:25 UTC, Anonymouse wrote: On Tuesday, 7 May 2019 at 17:33:22 UTC, Ron Tarrant wrote: I've had this happen, too. I don't know for sure, but I think it may be because the installers aren't prepared to do updates, not on Windows, anyway. My best success for upda

Re: Nothing at all compiles with -m64 on Windows

2019-05-11 Thread user1234 via Digitalmars-d-learn
On Saturday, 11 May 2019 at 09:59:25 UTC, Anonymouse wrote: On Tuesday, 7 May 2019 at 17:33:22 UTC, Ron Tarrant wrote: I've had this happen, too. I don't know for sure, but I think it may be because the installers aren't prepared to do updates, not on Windows, anyway. My best success for upda

dub / debug build / missing symbols

2019-05-11 Thread Robert M. Münch via Digitalmars-d-learn
I somehow managed to get debug symbols into my dub project in the past. Now I'm trying to extend my dub configuration to use different libs for debug and release versions. "buildTypes" : { "debug" : { "libs-windows-x86_64" : ["user32", "gdi32", "mylib1_d_x64", "mylib2_d_x64"],

Re: Dub subPackage buildType and output file name

2019-05-11 Thread Robert M. Münch via Digitalmars-d-learn
On 2015-01-23 15:45:21 +, Stefan Frijters said: Currently I'm using dub for the first time and I've run into two problems so far. 2) I would like the file name of my final executable to depend on my chosen --build and --config options (i.e. --). Is this possible to do? Pretty old quest

Compile time mapping

2019-05-11 Thread Bogdan via Digitalmars-d-learn
What would be the most straight-forward way of mapping the members of an enum to the members of another enum (one-to-one mapping) at compile time?

Dub fetch

2019-05-11 Thread Russel Winder via Digitalmars-d-learn
Hi, Is there a way of asking which version of package XXX "dub fetch XXX" will actually fetch. I would like to avoid checking the contents of ~/.dub/packages before and after. -- Russel. === Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road

Re: DLL creation fails with undefined symbol error

2019-05-11 Thread kinke via Digitalmars-d-learn
On Friday, 26 April 2019 at 05:08:32 UTC, dokutoku wrote: Is this a DUB or LDC bug? It's a combination of at least 3 small bugs in the MinGW-w64 based libraries and should be fixed by https://github.com/ldc-developers/ldc/pull/3071.

Re: In what situation can new Struct() return null?

2019-05-11 Thread faissaloo via Digitalmars-d-learn
On Friday, 10 May 2019 at 17:54:44 UTC, H. S. Teoh wrote: Perhaps try Dustmite on it? AFAIK, calling new on a struct should never return null. So there must be something else not quite right here. But without actual code it's anybody's guess as to what it might be. The last time I heard som

Re: LDC2 and classic profiling

2019-05-11 Thread Denis Feklushkin via Digitalmars-d-learn
On Saturday, 11 May 2019 at 11:34:35 UTC, Denis Feklushkin wrote: Tried it, and xray also does not returns any info about my own functions... Maybe DUB caches binaries and linker links previous non-instrumented object files? I tried "dub clean" and "dub clean-caches" but maybe it is need rem

Re: LDC2 and classic profiling

2019-05-11 Thread Denis Feklushkin via Digitalmars-d-learn
On Saturday, 11 May 2019 at 09:12:24 UTC, Johan Engelen wrote: Those calls are to templated functions I presume? No instantiated in your program and hence instrumented) Also I changed flags to "dflags-ldc": ["-fprofile-instr-generate", "-O0"] - second flag disables optimisation (I assumed

Re: Nothing at all compiles with -m64 on Windows

2019-05-11 Thread Anonymouse via Digitalmars-d-learn
On Tuesday, 7 May 2019 at 17:33:22 UTC, Ron Tarrant wrote: I've had this happen, too. I don't know for sure, but I think it may be because the installers aren't prepared to do updates, not on Windows, anyway. My best success for updating has been to scrape D completely off my drive (ie. unins

Re: Framework design, initialization and framework usage

2019-05-11 Thread Robert M. Münch via Digitalmars-d-learn
On 2019-05-09 20:42:54 +, Adam D. Ruppe said: i do web and gui :-) Though my gui library is 100% from scratch on linux, and... barely even good enough for myself to use. I really need to write a new text edit widget. Ok, so a GUI based app framework really seems to be a "hot topic". I

Re: LDC2 and classic profiling

2019-05-11 Thread Johan Engelen via Digitalmars-d-learn
On Saturday, 11 May 2019 at 06:59:52 UTC, Denis Feklushkin wrote: On Saturday, 11 May 2019 at 05:46:29 UTC, Denis Feklushkin wrote: All another calls is made inside of this lambda - maybe lambdas is not traced by profiler? Tried to remove lambda with same result. Command: llvm-profdata sho

Re: In what situation can new Struct() return null?

2019-05-11 Thread Jonathan M Davis via Digitalmars-d-learn
On Friday, May 10, 2019 11:54:44 AM MDT H. S. Teoh via Digitalmars-d-learn wrote: > On Fri, May 10, 2019 at 05:32:25PM +, faissaloo via Digitalmars-d- learn wrote: > > On Friday, 10 May 2019 at 12:19:29 UTC, Cym13 wrote: > > > On Friday, 10 May 2019 at 10:11:51 UTC, faissaloo wrote: > > > > My

Re: LDC2 and classic profiling

2019-05-11 Thread Denis Feklushkin via Digitalmars-d-learn
On Saturday, 11 May 2019 at 05:46:29 UTC, Denis Feklushkin wrote: All another calls is made inside of this lambda - maybe lambdas is not traced by profiler? Tried to remove lambda with same result. Command: llvm-profdata show -all-functions -topn=10 default.profdata returns huge amount