Re: How bundles a Dlang application and all its dependencies into a single .exe package?

2019-12-01 Thread rikki cattermole via Digitalmars-d-learn
On 02/12/2019 9:05 AM, Marcone wrote: My program have Qt5 GUI that use dlls, icons, pictures, etc. How bundles a Dlang application and all its dependencies into a single .exe package? Placing all your assets into an exe is usually done if the exe itself is self extracting (and doesn't link a

Re: Building and running DMD tests

2019-12-01 Thread Suleyman via Digitalmars-d-learn
On Sunday, 1 December 2019 at 15:20:42 UTC, Per Nordlöw wrote: Is it possible to compile and run unittest of dmd without druntime and phobos? If so, how? I'm trying the following under dmd root: make -C src -f posix.mak unittest ./generated/linux/release/64/dmd-unittest but that does

Re: How bundles a Dlang application and all its dependencies into a single .exe package?

2019-12-01 Thread Taylor R Hillegeist via Digitalmars-d-learn
On Sunday, 1 December 2019 at 20:05:40 UTC, Marcone wrote: My program have Qt5 GUI that use dlls, icons, pictures, etc. How bundles a Dlang application and all its dependencies into a single .exe package? I've used https://github.com/rikkimax/Bin2D in the past. I've never thought about the l

Re: Building and running DMD tests

2019-12-01 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, December 1, 2019 8:20:42 AM MST Per Nordlöw via Digitalmars-d- learn wrote: > Is it possible to compile and run unittest of dmd without > druntime and phobos? > > If so, how? > > I'm trying the following under dmd root: > > make -C src -f posix.mak unittest > ./generated/linux/

Re: How bundles a Dlang application and all its dependencies into a single .exe package?

2019-12-01 Thread Dennis via Digitalmars-d-learn
On Sunday, 1 December 2019 at 20:05:40 UTC, Marcone wrote: How bundles a Dlang application and all its dependencies into a single .exe package? You can embed files in the .exe using the import statement: https://p0nce.github.io/d-idioms/#Embed-a-dynamic-library-in-an-executable

Re: How bundles a Dlang application and all its dependencies into a single .exe package?

2019-12-01 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Sunday, 1 December 2019 at 20:05:40 UTC, Marcone wrote: My program have Qt5 GUI that use dlls, icons, pictures, etc. How bundles a Dlang application and all its dependencies into a single .exe package? There are several tools creating installers such as nsis. However, if you want to make

How bundles a Dlang application and all its dependencies into a single .exe package?

2019-12-01 Thread Marcone via Digitalmars-d-learn
My program have Qt5 GUI that use dlls, icons, pictures, etc. How bundles a Dlang application and all its dependencies into a single .exe package?

Building and running DMD tests

2019-12-01 Thread Per Nordlöw via Digitalmars-d-learn
Is it possible to compile and run unittest of dmd without druntime and phobos? If so, how? I'm trying the following under dmd root: make -C src -f posix.mak unittest ./generated/linux/release/64/dmd-unittest but that doesn't compile my file of interest test/compilable/traits.d . Ho

Re: Hum Humm, Typedef

2019-12-01 Thread aliak via Digitalmars-d-learn
On Saturday, 30 November 2019 at 18:15:47 UTC, Treebeard wrote: Hoom, hum, I met a dark forest of complains from the compilers here. [...] /me thinks it's a bug Pushed a pr. Let's see. https://github.com/dlang/phobos/pull/7298

Re: Run-time reflection for class inheritance

2019-12-01 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 1 December 2019 at 12:26:03 UTC, Michael Green wrote: I don't know if this would be a sensible approach to try and get at the actual class types for objects stored in some container at runtime? You can get the type at runtime by simply casting it... if(auto c = cast(EventSocket) ev

Re: Run-time reflection for class inheritance

2019-12-01 Thread Michael Green via Digitalmars-d-learn
On Sunday, 1 December 2019 at 12:26:03 UTC, Michael Green wrote: interface Event { [note to self - shouldn't make last minute checks and reverse them by hand before posting] That should of course read: class Event {

Run-time reflection for class inheritance

2019-12-01 Thread Michael Green via Digitalmars-d-learn
I don't know if this would be a sensible approach to try and get at the actual class types for objects stored in some container at runtime? I have noticed that this approach doesn't work if Event is an interface rather than a ancestor class. ``` import std.stdio; import std.string; import s