On Sunday, 25 December 2016 at 22:21:17 UTC, aliak wrote:
On Sunday, 25 December 2016 at 20:11:50 UTC, Seb wrote:
On Sunday, 25 December 2016 at 19:22:10 UTC, aliak wrote:
or is there a way for it to not be so cumbersome to work with?
You might be interested in
https://github.com/dlang/phob
On Sunday, 25 December 2016 at 20:11:50 UTC, Seb wrote:
On Sunday, 25 December 2016 at 19:22:10 UTC, aliak wrote:
or is there a way for it to not be so cumbersome to work with?
You might be interested in
https://github.com/dlang/phobos/pull/3915
Yes! That!
Seems like that PR is on a break
On Sunday, 25 December 2016 at 20:01:21 UTC, Stefan Koch wrote:
Well there is one easy way to do this.
pass a pointer to the data.
Another easy one is the definition of one invalid set of values
and using that is initial value and for convenience overload
opCast(T:bool) to check against that in
On Sunday, 25 December 2016 at 19:22:10 UTC, aliak wrote:
or is there a way for it to not be so cumbersome to work with?
You might be interested in
https://github.com/dlang/phobos/pull/3915
And
https://github.com/dlang/phobos/pull/4989
On Sunday, 25 December 2016 at 19:22:10 UTC, aliak wrote:
Hey,
So, been using the programming language swift for a while now,
the optional types[1] they support makes working with
maybe-type (ala haskell) values extremely pleasant.
[...]
Well there is one easy way to do this.
pass a pointe
Hey,
So, been using the programming language swift for a while now,
the optional types[1] they support makes working with maybe-type
(ala haskell) values extremely pleasant.
Does D have anything other than the Nullable template that can be
used to work with optionals, or is there a way for i
On Saturday, 24 December 2016 at 23:06:25 UTC, Ali Çehreli wrote:
auto c = Command!(fun, Args)(args);
writefln("Created %s", c);
// (3) Workaround: Storing delegates, not Command instances.
return () => c();
Ah, yes. Nice work around :)
Thankies!
On Sunday, 25 December 2016 at 03:12:09 UTC, Carl Vogel wrote:
Does anyone know if compile-time initialization of AAs is
something that will be fixed?
I do intend to fix this.
The method is rather simple,
Given the aa implantation in d-runtime is made ctfe-able
everything that causes trouble c
On Sunday, 25 December 2016 at 05:45:14 UTC, Era Scarecrow wrote:
On Saturday, 24 December 2016 at 11:21:11 UTC, Stefan Koch
wrote:
On Saturday, 24 December 2016 at 00:55:01 UTC, Yuxuan Shui
wrote:
What's the correct way?
You cannot initialize an AA at compile-time.
Because AA's are provided
On Saturday, 24 December 2016 at 00:55:01 UTC, Yuxuan Shui wrote:
I tried this:
immutable int[char] xx = ['Q':0, 'B':1, 'N':2, 'R':3,
'P':4];
And got a "non-constant expression" error (with or without
'immutable').
What's the correct way?
This works:
void main() {
immutable int[
10 matches
Mail list logo