March 24, 2012 General » Re: Implicit conversions for AA keys | |||
|---|---|---|---|
| |||
This solution creates unnecessary template bloat for every implicit conversion, duplicates compiler logic, and I... | |||
March 24, 2012 General » Re: Implicit conversions for AA keys | |||
|---|---|---|---|
| |||
[...] Hmm. I decided that perhaps the full-fledged std.conv.to is a bit of... | |||
March 23, 2012 General » Re: Implicit conversions for AA keys | |||
|---|---|---|---|
| |||
Proof of concept: // ctfe-able simple and stupid replace string replace(string str, string from... | |||
March 23, 2012 General » Re: Implicit conversions for AA keys | |||
|---|---|---|---|
| |||
I see. An alternative solution (one that does not make AAs depend on Phobos and... | |||
March 23, 2012 General » Re: Implicit conversions for AA keys | |||
|---|---|---|---|
| |||
No, because of the other rules. Andrei | |||
March 23, 2012 General » Re: Implicit conversions for AA keys | |||
|---|---|---|---|
| |||
This will statically allow looking up an int in a T[string]. I don't... | |||
March 23, 2012 General » Re: Implicit conversions for AA keys | |||
|---|---|---|---|
| |||
Not sure how it's best to address this. Andrei | |||
March 23, 2012 General » Re: Implicit conversions for AA keys | |||
|---|---|---|---|
| |||
Casting from char[] to string is not what you want, and .idup is specific to... | |||
March 23, 2012 General » Re: Implicit conversions for AA keys | |||
|---|---|---|---|
| |||
OK. Would the following be enough?
template isEquiv(T,U) {
enum isEquiv = is(immutable(T... | |||
March 23, 2012 General » Re: Implicit conversions for AA keys | |||
|---|---|---|---|
| |||
druntime mustn't depend on Phobos, and I don't see why it is necessary... | |||
Copyright © 1999-2021 by the D Language Foundation