Re: How to use lowerBound and upperBound effectively?

2019-07-02 Thread A. Bressan via Digitalmars-d-learn
On Tuesday, 2 July 2019 at 17:07:25 UTC, Ali Çehreli wrote: On 07/02/2019 02:27 AM, A. Bressan wrote: > contrary to C++, lowerBound and > upperBound give the same piece of information because they return > complementary sub-ranges. I don't understand the specific problem but can 'trisect' be u

Re: How to build a package as application ?

2019-07-02 Thread guiguidu60 via Digitalmars-d-learn
On Tuesday, 2 July 2019 at 19:49:32 UTC, Les De Ridder wrote: On Tuesday, 2 July 2019 at 17:29:51 UTC, guiguidu60 wrote: [...] Currently you can't, AFAICT. Many Linux distros these days make PIE the default for Clang/GCC, because PIE allows for more ASLR, a common modern security hardening

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 guiguidu60 via Digitalmars-d-learn
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 wrote: [...] What file manager are you using? Could you

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 wro

Re: How to use lowerBound and upperBound effectively?

2019-07-02 Thread Ali Çehreli via Digitalmars-d-learn
On 07/02/2019 02:27 AM, A. Bressan wrote: > contrary to C++, lowerBound and > upperBound give the same piece of information because they return > complementary sub-ranges. I don't understand the specific problem but can 'trisect' be useful? https://dlang.org/library/std/range/sorted_range.tri

Re: How to build a package as application ?

2019-07-02 Thread guiguidu60 via Digitalmars-d-learn
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 wrote: I'm a newbie with D language, and my first problem ever

Re: How to build a package as application ?

2019-07-02 Thread guiguidu60 via Digitalmars-d-learn
On Tuesday, 2 July 2019 at 15:29:44 UTC, Paul Backus wrote: On Tuesday, 2 July 2019 at 08:50:36 UTC, guiguidu60 wrote: I have a hello world program build with DUB on Linux, but the program as marked as "application/x-sharedlib" and not "application/x-executable" (in properties of the file): so,

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, but

Re: How to build a package as application ?

2019-07-02 Thread guiguidu60 via Digitalmars-d-learn
On Tuesday, 2 July 2019 at 15:29:44 UTC, Paul Backus wrote: On Tuesday, 2 July 2019 at 08:50:36 UTC, guiguidu60 wrote: I have a hello world program build with DUB on Linux, but the program as marked as "application/x-sharedlib" and not "application/x-executable" (in properties of the file): so,

Re: How to build a package as application ?

2019-07-02 Thread Paul Backus via Digitalmars-d-learn
On Tuesday, 2 July 2019 at 08:50:36 UTC, guiguidu60 wrote: I have a hello world program build with DUB on Linux, but the program as marked as "application/x-sharedlib" and not "application/x-executable" (in properties of the file): so, I can't able to execute the program from the file explorer

Re: How to build a package as application ?

2019-07-02 Thread guiguidu60 via Digitalmars-d-learn
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, but the program as marked as "application/x-sharedlib" and not

Re: Mixin mangled name

2019-07-02 Thread bauss via Digitalmars-d-learn
On Monday, 1 July 2019 at 23:52:49 UTC, Andrey wrote: Hello, Is it possible to mixin in code a mangled name of some entity so that compiler didn't emit undefined symbol error? For example mangled function name or template parameter? Perhaps: https://dlang.org/spec/pragma.html#mangle

Re: How to build a package as application ?

2019-07-02 Thread Andre Pany via Digitalmars-d-learn
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, but the program as marked as "application/x-sharedlib" and not "application/x-executable" (in properties of the file): so

How to use lowerBound and upperBound effectively?

2019-07-02 Thread A. Bressan via Digitalmars-d-learn
Hi, I am translating the following C++ code to D and I have some trouble to achieve it using ranges. #include #include typedef std::vector::const_iterator iter; std::pair getSubVector(iter beg, iter end, int val, int shift) { return {std::upper_bound(beg,end,val)-shift,end}; } My best resu

Blog Post #0049: MVC - The ComboBoxText

2019-07-02 Thread Ron Tarrant via Digitalmars-d-learn
Continuing the series on Model, View, Controller... This time around, we look at the ComboBoxText, the simplest of the MVC offerings. https://gtkdcoding.com/2019/07/02/0049-mvc-ii-comboboxtext.html

How to build a package as application ?

2019-07-02 Thread guiguidu60 via Digitalmars-d-learn
I'm a newbie with D language, and my first problem ever is: I have a hello world program build with DUB on Linux, but the program as marked as "application/x-sharedlib" and not "application/x-executable" (in properties of the file): so, I can't able to execute the program from the file explore