June 20, 2011 General » Re: Yet another slap on the hand by implicit bool to int conversions | |||
|---|---|---|---|
| |||
On Sun, 19 Jun 2011 19:42:22 -0400, bearophile <bearophileHUGS@lycos.com> wrote: I... | |||
June 20, 2011 General » Re: Yet another slap on the hand by implicit bool to int conversions | |||
|---|---|---|---|
| |||
Andrej Mitrovic Wrote: How would you catch this bug: if (mmioRead(hmmio, cast(LPSTR)&iFormat... | |||
June 20, 2011 General » Re: Is there a standard way to define to for user-defined types? | |||
|---|---|---|---|
| |||
...be to make it work with object-to-object conversions as well. - Jonathan M Davis | |||
June 20, 2011 General » Re: Is there a standard way to define to for user-defined types? | |||
|---|---|---|---|
| |||
...in std.conv: /** Object-_to-non-object conversions look for a method "to" of the... | |||
June 20, 2011 General » Is there a standard way to define to for user-defined types? | |||
|---|---|---|---|
| |||
...conv.to looks for and uses for conversions if it's there. Which of those... | |||
June 20, 2011 General » Re: Yet another slap on the hand by implicit bool to int conversions | |||
|---|---|---|---|
| |||
Mehrdad: D typedef was meant for this. Until there is something (probably library-based) to... | |||
June 20, 2011 General » Re: Yet another slap on the hand by implicit bool to int conversions | |||
|---|---|---|---|
| |||
I agree, this is a ridiculous bug to have to spend so much time for... | |||
June 19, 2011 General » Re: Yet another slap on the hand by implicit bool to int conversions | |||
|---|---|---|---|
| |||
Timon Gehr: Right. This thread is very good food for this enhancement request of mine... | |||
June 19, 2011 General » Re: Yet another slap on the hand by implicit bool to int conversions | |||
|---|---|---|---|
| |||
Sry should have been int daysinmonth = month==1?28:30+((month&1)==(month>6)); obv... | |||
June 19, 2011 General » Re: Yet another slap on the hand by implicit bool to int conversions | |||
|---|---|---|---|
| |||
...of a problem than the implicit conversions. Implicit conversions from boolean to int don't... | |||
Copyright © 1999-2021 by the D Language Foundation