D and expression evaluation order.

Sean Kelly sean at f4.ca
Fri Apr 27 18:42:12 PDT 2007


Bruno Medeiros wrote:
> Sean Kelly wrote:
>>
>> It's an issue because it's confusing, as previous discussions can 
>> attest.  I'm still not convinced that there is sufficient reason to 
>> define an evaluation order, since most other languages don't and it 
>> doesn't seem to be a problem, but I'll admit that it would make for 
>> less confusion.
> 
> What do you mean by "most other languages"? Have you seen my other post 
> which mentions that not only Java, but C#, Python, and even Ruby all 
> have well defined evaluation orders?

True.  I suppose I should have said "most other languages I've used" :-p 
  I'm wondering if it's fair to include languages that don't support 
operator overloading though, or multiple calling conventions.  Can a 
strong parallel be drawn between D and any of the languages you mention, 
insofar as this issue is concerned?


Sean



More information about the Digitalmars-d mailing list