On Thursday, 30 July 2020 at 00:27:49 UTC, user1234 wrote:
On Wednesday, 29 July 2020 at 23:57:21 UTC, Jean-Louis Leroy
wrote:
This works:
[...]
I may be missing the obvious...or it's a compiler bug???
Yes and it's just been fixed, see
https://github.com/dlang/dmd/pull/11431.
So
On Wednesday, 29 July 2020 at 23:57:21 UTC, Jean-Louis Leroy
wrote:
This works:
[...]
I may be missing the obvious...or it's a compiler bug???
Yes and it's just been fixed, see
https://github.com/dlang/dmd/pull/11431.
So uncommenting the second times works on ~master.
This works:
module test;
void foo(T)(T a, T b) {}
void foo(T)(char a, T b) {}
template InstantiateTemplateAt(alias Module, string name, int
index, T...) {
alias Template = __traits(getOverloads, test, name,
true)[index];
alias InstantiateTemplateAt = Template!(T);
}
pragma(msg,
On 7/29/20 3:13 PM, Andy Balba wrote:
,,
Not at all. The wording in the documentation is misleading.
Recursive functions are as trivial as they are:
int foo(uint i) {
if (i == 0) {
return 42;
}
return foo(i - 1);
}
void main() {
assert(foo(7) == 42);
}
Ali
,,
On Wednesday, 29 July 2020 at 17:42:20 UTC, jeff thompson wrote:
On Wednesday, 29 July 2020 at 13:26:45 UTC, Andre Pany wrote:
On Tuesday, 28 July 2020 at 22:10:58 UTC, jeff thompson wrote:
On Tuesday, 28 July 2020 at 22:08:14 UTC, Steven
Schveighoffer wrote:
[...]
Thanks Steve!, ya i know
On Wednesday, 29 July 2020 at 13:26:45 UTC, Andre Pany wrote:
On Tuesday, 28 July 2020 at 22:10:58 UTC, jeff thompson wrote:
On Tuesday, 28 July 2020 at 22:08:14 UTC, Steven Schveighoffer
wrote:
[...]
Thanks Steve!, ya i know i can call build twice but i was
wondering if there was any
On Tuesday, 28 July 2020 at 22:10:58 UTC, jeff thompson wrote:
On Tuesday, 28 July 2020 at 22:08:14 UTC, Steven Schveighoffer
wrote:
On 7/28/20 5:50 PM, jeff thompson wrote:
Hello
Im brand new to D (loving it btw!) and have decided to build
a largish windows project in the language. First