is questions

Lucas Goss lgoss007 at gmail.com
Thu Mar 16 16:34:52 PST 2006


Kramer wrote:
> Comments inline.
>> if(x is int)
> 
> This is under the Identity Expressions section in
> http://www.digitalmars.com/d/expression.html
> 
>> instead of:
>>
>> if( is(x : int) )
> 
> And this is under the IsExpression section in
> http://www.digitalmars.com/d/expression.html
> 
> This is what I'm assuming you found out.  I'm glad you brought this up though as
> it forced me to look over that documentation again.

Ah... so "is" has two different meanings...
<sarcastic> great!!! </sarcastic>

Oh and the "is" identity expression has two meanings itself (one for 
classes, static/dynamic arrays and one for everything else).
<sarcastic> double great!!! </sarcastic>

Thanks for the clarification.



More information about the Digitalmars-d mailing list