On Friday, 25 November 2022 at 15:03:57 UTC, ShadoLight wrote:
I don't grok how `lf` can survive the local scope. Or am I
missing something?
Perhaps because the local scope is not pushed as a separate
(anonymous) function on the stack... if true then, yes, then
`lf` will indeed have the same
On Saturday, 16 May 2020 at 17:45:56 UTC, Konstantin wrote:
import std.stdio;
import automem;
import std.experimental.allocator.mallocator : Mallocator;
interface IGetInt
{
@nogc int GetInt();
}
class Foo : IGetInt
{
@nogc int GetInt()
{
return 42;
}
}
@nogc void main()
Hello, using dmd 2.100.2 and ldc2 1.30.0, compiling to 64-bits,
Windows 10.
pragma(linkerDirective,_) strips double quotation marks,
so how can a linker command line like
/LIBPATH:"Path/containing spaces/to/needed/libs"
be passed on to the linker via this pragma? Is this a bug?
Note: the lib
For LDC, you shouldn't need any double quotes, the compiler
quotes the linker flag if it contains spaces.
On Sunday, 27 November 2022 at 17:37:50 UTC, kinke wrote:
For LDC, you shouldn't need any double quotes, the compiler
quotes the linker flag if it contains spaces.
Didn't work for me with LDC:
This, which works at the command line with ```-L=```:
```enum LIBPATH = `/LIBPATH:"C:\Program Files
On Sunday, 27 November 2022 at 17:06:31 UTC, vushu wrote:
On Saturday, 16 May 2020 at 17:45:56 UTC, Konstantin wrote:
[...]
I'm actually also very curious about this issue, since I come
from c++ where this is possible, and it is a very common
functionality for example for dependency inversio