On Wednesday, 8 November 2023 at 16:30:49 UTC, Bienlein wrote:
Hello,
I get the error "`addToBiz(T)(Biz!T biz)` is not an lvalue and
cannot be modified" when compiling the code below. Can't find a
way how to do it right. Am a D newbie and would appreciate some
help.
[...]
static void a
Hello,
I get the error "`addToBiz(T)(Biz!T biz)` is not an lvalue and
cannot be modified" when compiling the code below. Can't find a
way how to do it right. Am a D newbie and would appreciate some
help.
Thank you, Bienlein
class Biz(T) {
private T value;
this(T value) {
On Wednesday, 8 November 2023 at 11:48:58 UTC, BoQsc wrote:
I would like to export some functionality as external shared
dynamically linked D library.
Is it possible to do that in D Language and what are
limitations?
A simple `writeln` example would be great.
What I expect is an executable
Currently stick to ldc.
Dub's defaults will "just work" except:
- On *nix where you have to either set/patch the ``RPATH`` or set
``LD_LIBRARY_PATH``.
- For executables on Windows in which you need to set the dflag
``-dllimport=all``.
From a README of mine (for Posix):
To get the loading
I would like to export some functionality as external shared
dynamically linked D library.
Is it possible to do that in D Language and what are limitations?
A simple `writeln` example would be great.
What I expect is an executable that uses functions, variables,
classes, modules from compiled