On Tuesday, 4 April 2017 at 18:42:45 UTC, timvol wrote:
Hi guys,
I'm trying to cross-compile a project using CMake and gdc (or
better: the gdmd port). My CMakeLists-file is the following:
For cross-compiling, CMake uses a so called "toolchain" file [1]
where you define the system paths sim
After minimizing a more complex program I got the following small
example that produces a rather strange error.
The error says that MapResult has no field '_input' although the
sole MapResult definition has such a field.
What is the explanation for this error?
```
auto foo(T)(T )
{
import
On Wednesday, 16 December 2015 at 14:18:28 UTC, Borislav Kosharov
wrote:
I want to split a string using multiple separators. In
std.array the split function has a version where it takes a
range as a separator, but it works differently than what I
want. Say if I call it with " -> " it will searc
On Wednesday, 29 July 2015 at 13:39:33 UTC, simendsjo wrote:
Is there no Unix socket support in Phobos? Or vibe? Or any
other library?
I've found some discussions:
* https://issues.dlang.org/show_bug.cgi?id=9384
*
http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/thread/10870/
,
On Thursday, 8 January 2015 at 15:45:27 UTC, Nordlöw wrote:
Is
key in aa ? aa[key] : ValueType.init;
the most efficient way to maybe return a value from an
associative array aa?
aa.get(key, ValueType.init)
This describes the semantics of regular arrays. Are you sure it
also applies to AAs? I thought they will keep referring to the
same data once they are initialized. But I might be mistaken...
This can be easily tested. And... you are right!
In the current implementation (I couldn't find any
On Wednesday, 6 August 2014 at 14:36:23 UTC, Marc Schütz wrote:
This would defeat the purpose, see the original post.
sorry, I red just the last post.
__gshared has no influence on this.
auto cmds = CONFIG.commands;
cmds["list"] = new Command(...);
cmds is a thread local variable referenc
1. The only way that I can initialize it is to assign a value.
But I want to initialize an empty AA, is that possible?
Like arrays, associative arrays have value semantics. This means
that they can be always referenced.
It is easier to see this with an array:
int[] a1 = null;
writeln(a1.pt