Re: question about call cpp class constructer without new , and define cpp delegate

2019-06-26 Thread evilrat via Digitalmars-d-learn
On Thursday, 27 June 2019 at 05:37:08 UTC, ChangLoong wrote: If I want call cpp class constructer without new method, is there a way to do that ? If what you really want is to actually allocate using C++ new operator from D, then that is very problematic and not portable even across compilers

question about call cpp class constructer without new , and define cpp delegate

2019-06-26 Thread ChangLoong via Digitalmars-d-learn
If I want call cpp class constructer without new method, is there a way to do that ? and also if the cpp api accept a delegate as parameter, how to create one from d and pass to cpp ?

Re: Create empty SList or DList.

2019-06-26 Thread bauss via Digitalmars-d-learn
On Wednesday, 26 June 2019 at 19:06:24 UTC, drug wrote: 26.06.2019 20:39, bauss пишет: auto stack = SList!int(0); stack.removeFront(); Then something that just allowed you to do: auto stack = SList!int; this compiles: ``` auto stack = SList!int(); ``` Maybe something else triggered it for m

Re: Create empty SList or DList.

2019-06-26 Thread drug via Digitalmars-d-learn
26.06.2019 20:39, bauss пишет: auto stack = SList!int(0); stack.removeFront(); Then something that just allowed you to do: auto stack = SList!int; this compiles: ``` auto stack = SList!int(); ```

Create empty SList or DList.

2019-06-26 Thread bauss via Digitalmars-d-learn
Is there a way to achieve that instead of something hacky like adding an initialized element and then removing it. Ex. instead of: auto stack = SList!int(0); stack.removeFront(); Then something that just allowed you to do: auto stack = SList!int; // Not allowed. --- I feel like this makes co

Re: Where can find the GC impletement source code?

2019-06-26 Thread kinke via Digitalmars-d-learn
On Wednesday, 26 June 2019 at 15:56:06 UTC, lili wrote: Hi Guys: I look for the GC source code in /usr/include/dmd dir, unfortunately not find. https://github.com/dlang/druntime/blob/master/src/gc/impl/conservative/gc.d

Where can find the GC impletement source code?

2019-06-26 Thread lili via Digitalmars-d-learn
Hi Guys: I look for the GC source code in /usr/include/dmd dir, unfortunately not find.

Re: Illegal Filename after basic install and trying Hello World

2019-06-26 Thread Gilbert Fernandes via Digitalmars-d-learn
After removing all paths to the linker, the error has changed : -- Build started: Project: Test2, Configuration: Debug x64 -- Building x64\Debug\Test2.exe... TRACKER : error TRK0005: ‚chec de localisation deÿ: "@D:\sources_D\Test2\Test2\x64\Debug\Test2.link.rsp". Le fichier sp‚ci

Re: Illegal Filename after basic install and trying Hello World

2019-06-26 Thread Nicholas Wilson via Digitalmars-d-learn
On Wednesday, 26 June 2019 at 13:57:22 UTC, Gilbert Fernandes wrote: I am using VS 2019 into which I have C# and C++ active. Installed the following : DMD 2.086.1 then Visual D 0.50.0 DMD has been installed at the base of C:\ at C:\D Created a D project, which contains a default Hello world pro

Illegal Filename after basic install and trying Hello World

2019-06-26 Thread Gilbert Fernandes via Digitalmars-d-learn
I am using VS 2019 into which I have C# and C++ active. Installed the following : DMD 2.086.1 then Visual D 0.50.0 DMD has been installed at the base of C:\ at C:\D Created a D project, which contains a default Hello world program. Build fails. Running the program fails. VS displays the followin

Re: Conversion problem.

2019-06-26 Thread Den_d_y via Digitalmars-d-learn
On Wednesday, 26 June 2019 at 10:49:50 UTC, Den_d_y wrote: On Wednesday, 26 June 2019 at 05:53:29 UTC, Den_d_y wrote: On Tuesday, 25 June 2019 at 16:44:28 UTC, H. S. Teoh wrote: On Tue, Jun 25, 2019 at 12:08:07PM +, Den_d_y via Digitalmars-d-learn wrote: [...] [...] Did you try this?

Re: Conversion problem.

2019-06-26 Thread Den_d_y via Digitalmars-d-learn
On Wednesday, 26 June 2019 at 05:53:29 UTC, Den_d_y wrote: On Tuesday, 25 June 2019 at 16:44:28 UTC, H. S. Teoh wrote: On Tue, Jun 25, 2019 at 12:08:07PM +, Den_d_y via Digitalmars-d-learn wrote: Hello! Here I am again, with my problem ... In my program, I cannot manage to convert from "dou

Re: How to use template Object in interface?

2019-06-26 Thread zoujiaqing via Digitalmars-d-learn
On Tuesday, 25 June 2019 at 12:11:47 UTC, zoujiaqing wrote: hunt-cache current version use template implemention adapter changes. I want use Interface to define Adapter, this master code unable to comple. How to do it? D programming language design flaws? ```bash git clone https://github.co