Re: cast to a particular type

Bryn Keller <[email protected]> Tue, 04 May 2004 14:35:12 -0700
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
How about assigning it to a variable with a declared type? (untested):

let A x_as_A= cast(x);

Hope that helps,
Bryn


Isaac Gouy wrote:

>How can I cast an Object to a particular type?
>
>Both A and B have implementations of dostuff() so there's an ambiguity
>with this
>   Object x = ...
>   cast(x).dostuff
>
>
>
>	
>		
>__________________________________
>Do you Yahoo!?
>Win a $20,000 Career Makeover at Yahoo! HotJobs  
>http://hotjobs.sweepstakes.yahoo.com/careermakeover 
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: Oracle 10g
>Get certified on the hottest thing ever to hit the market... Oracle 10g. 
>Take an Oracle 10g class now, and we'll give you the exam FREE.
>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
>_______________________________________________
>Nice-info mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/nice-info
>
>
>  
>



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click