Re: How to use xargs to remove whitespaces (Dub executable path)

2019-09-04 Thread Les De Ridder via Digitalmars-d-learn
On Wednesday, 4 September 2019 at 08:23:19 UTC, Andre Pany wrote: On Wednesday, 4 September 2019 at 06:40:13 UTC, H. S. Teoh wrote: On Wed, Sep 04, 2019 at 05:52:12AM +, Andre Pany via Digitalmars-d-learn wrote: Hi, I try to get the executable path from a dub package using this command:

Re: Static initialization of rectangular arrays

2019-08-29 Thread Les De Ridder via Digitalmars-d-learn
On Thursday, 29 August 2019 at 15:10:26 UTC, rombankzero wrote: [...] Is this a bug, or am I missing something? It would be really convenient to be able to statically initialize rectangular arrays in this way. Example: I have a struct that has a member that's a rectangular float array, but I

Re: Files as buffered InputRange

2019-07-05 Thread Les De Ridder via Digitalmars-d-learn
On Friday, 5 July 2019 at 18:29:36 UTC, berni wrote: On Friday, 5 July 2019 at 17:57:39 UTC, Les De Ridder wrote: File.byChunk[1] should do the trick. [1] https://dlang.org/library/std/stdio/file.by_chunk.html Not sure, if this is, what I'm looking for. I'd like to do something like

Re: Files as buffered InputRange

2019-07-05 Thread Les De Ridder via Digitalmars-d-learn
On Friday, 5 July 2019 at 17:29:26 UTC, berni wrote: I'd like to process a (binary) file as a buffered InputRange but I havn't found anything yet. Is there anything or do I have to write it on my own? File.byChunk[1] should do the trick. [1]

Re: How to build a package as application ?

2019-07-02 Thread Les De Ridder via Digitalmars-d-learn
On Tuesday, 2 July 2019 at 17:29:51 UTC, guiguidu60 wrote: On Tuesday, 2 July 2019 at 17:14:23 UTC, Les De Ridder wrote: On Tuesday, 2 July 2019 at 16:56:52 UTC, guiguidu60 wrote: On Tuesday, 2 July 2019 at 16:44:12 UTC, Les De Ridder wrote: On Tuesday, 2 July 2019 at 14:49:49 UTC, guiguidu60

Re: How to build a package as application ?

2019-07-02 Thread Les De Ridder via Digitalmars-d-learn
On Tuesday, 2 July 2019 at 16:56:52 UTC, guiguidu60 wrote: On Tuesday, 2 July 2019 at 16:44:12 UTC, Les De Ridder wrote: On Tuesday, 2 July 2019 at 14:49:49 UTC, guiguidu60 wrote: On Tuesday, 2 July 2019 at 10:43:08 UTC, Andre Pany wrote: On Tuesday, 2 July 2019 at 08:50:36 UTC, guiguidu60

Re: How to build a package as application ?

2019-07-02 Thread Les De Ridder via Digitalmars-d-learn
On Tuesday, 2 July 2019 at 14:49:49 UTC, guiguidu60 wrote: On Tuesday, 2 July 2019 at 10:43:08 UTC, Andre Pany wrote: On Tuesday, 2 July 2019 at 08:50:36 UTC, guiguidu60 wrote: I'm a newbie with D language, and my first problem ever is: I have a hello world program build with DUB on Linux,

Re: DIP 1016 and const ref parameters

2019-06-19 Thread Les De Ridder via Digitalmars-d-learn
On Wednesday, 19 June 2019 at 20:18:58 UTC, Max Haughton wrote: On Wednesday, 19 June 2019 at 19:25:59 UTC, Jonathan M Davis wrote: On Wednesday, June 19, 2019 12:28:12 PM MDT XavierAP via Digitalmars-d-learn wrote: [...] The DIPs are here: https://github.com/dlang/DIPs [...] DIP1014 has

Re: Scope exit bug?

2019-06-14 Thread Les De Ridder via Digitalmars-d-learn
On Friday, 14 June 2019 at 05:35:05 UTC, Amex wrote: I used it to avoid having to write bar twice or use a flag but it's not working... I see no reason why it should not work. scope(exit) is suppose to execute the block at the end of the function call, right? No, a scope guard executes at

Re: [OT] Re: 1 - 17 ms, 553 ╬╝s, and 1 hnsec

2019-05-20 Thread Les De Ridder via Digitalmars-d-learn
On Sunday, 19 May 2019 at 12:24:28 UTC, Patrick Schluter wrote: On Saturday, 18 May 2019 at 21:05:13 UTC, Les De Ridder wrote: On Saturday, 18 May 2019 at 20:34:33 UTC, Patrick Schluter wrote: * hurrah for French keyboard which has a rarely used µ key, but none for Ç a frequent character of

Re: 1 - 17 ms, 553 ╬╝s, and 1 hnsec

2019-05-18 Thread Les De Ridder via Digitalmars-d-learn
On Saturday, 18 May 2019 at 20:34:33 UTC, Patrick Schluter wrote: * hurrah for French keyboard which has a rarely used µ key, but none for Ç a frequent character of the language.