Re: How to deploy single exe application (?)

2021-11-15 Thread pilger via Digitalmars-d-learn
On Monday, 15 November 2021 at 21:16:14 UTC, Willem wrote: Any feedback / pointers on where to start would be greatly appreciated. https://p0nce.github.io/d-idioms/#Embed-a-dynamic-library-in-an-executable

Re: Anyway to achieve the following

2021-08-13 Thread pilger via Digitalmars-d-learn
On Friday, 13 August 2021 at 19:06:17 UTC, JG wrote: Anyway I hope it is clearer what I mean. Is it possible to do this in d? union S { int x; int a; } void main() { S s= S(1234); writeln(s.a); //displays 1234 s.x = s.x+1; writeln(s.a); //displays 1235 s.a = s.a +1;

Re: Display a random image with vibe.d

2021-06-20 Thread pilger via Digitalmars-d-learn
On Sunday, 20 June 2021 at 12:34:33 UTC, vnr wrote: I don't understand why the image doesn't display, when I take an image from the internet and give the url, it works fine though. maybe this works: const auto rndimg = format("/images/rndimg/img%d.jpg", a); Also, is this a good way to