Am Fri, 27 Apr 2012 02:56:11 +0200 schrieb "Tryo[17]" <[email protected]>:
> On Tuesday, 24 April 2012 at 22:45:37 UTC, Marco Leise wrote: > > Well... what do you want to hear? I like to know that the > > Honestly, I just want to hear the rationale for why things are > the way they are. I see thing possible in other languages that > I know are not as powerful as D and I get to wonder why... If > I don't understand enough to make a determination on my > own, I simply ask. In the first moment I wasn't sure if you were trolling. It seems so obvious and clear to me that the result of a calculation cannot change its type depending on the exact magnitudes of the operands, that I interpreted ^^ as *g* or :p. "Ha! Ha! Limitation!" Considering that you probably have more experience with higher-level languages, where the actual data type can be more or less hidden and dynamically changed, I can understand the confusion. The word powerful can mean different things to different people. Powerful can mean, that you have a high-level foreach loop, but it can also mean that you are able to implement a foreach loop in low-level assembly. A warning could be useful. I don't know about: (3 ^^ 99) & 0xFFFFFFFF though. I.e. cases where you may be aware of the overflow, but want the 2^32 modulo anyway for some kind of hash function. -- Marco
