Re: Range of dub package versions

2020-12-28 Thread rikki cattermole via Digitalmars-d-learn
$ dub upgrade https://dub.pm/commandline.html#upgrade dub.selections.json hasn't been deleted/upgraded so the versions would have gotten pinned to a known good state. Unless you change the version invalidating it, it most likely won't upgrade by itself.

Range of dub package versions

2020-12-28 Thread ShadoLight via Digitalmars-d-learn
I can build my app using dub, which has a dependency on the particular version of dlangui that was available when I originally created the project: "dependencies": { "dlangui": "~>0.9.182", ...etc.. }, I've recently noticed that the dlangui

Re: C++ interop, abstract struct problem

2020-12-28 Thread RSY via Digitalmars-d-learn
On Monday, 28 December 2020 at 16:42:19 UTC, Paul Backus wrote: On Monday, 28 December 2020 at 15:42:26 UTC, RSY wrote: ``IAllocator`` is an abstract struct, (a struct with virtual functions) But the problem is D doesn't allow that, so apparently i need to use an abstract class and wrap it

Re: C++ interop, abstract struct problem

2020-12-28 Thread Paul Backus via Digitalmars-d-learn
On Monday, 28 December 2020 at 15:42:26 UTC, RSY wrote: ``IAllocator`` is an abstract struct, (a struct with virtual functions) But the problem is D doesn't allow that, so apparently i need to use an abstract class and wrap it using: ``extern (C++, struct)`` You could try using one of the

Re: C++ interop, abstract struct problem

2020-12-28 Thread RSY via Digitalmars-d-learn
IAllocator struct: https://github.com/nem0/LumixEngine/blob/master/src/engine/allocator.h#L18 function: https://github.com/nem0/LumixEngine/blob/master/src/renderer/gpu/gpu.h#L208

C++ interop, abstract struct problem

2020-12-28 Thread RSY via Digitalmars-d-learn
Hello I try to use a C++ lib So far so good, i managed to use that lib and get started The problem however is this: C++ API: ``` void preinit(IAllocator& allocator, bool load_renderdoc); ``` ``IAllocator`` is an abstract struct, (a struct with virtual functions) But the problem is D

Re: Reading files using delimiters/terminators

2020-12-28 Thread Rekel via Digitalmars-d-learn
http://ddili.org/ders/d.en/index.html This seems very promising :) I doubt I'd still be considering D if it weren't for this awesome learning forum, thanks for all the help!