Re: cast to a particular type
Isaac Gouy <[email protected]> Tue, 4 May 2004 17:10:03 -0700 (PDT)
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
Is there a way to cast an Object to a particular type, without introducing a temporary variable? --- Bryn Keller <[email protected]> wrote: > How about assigning it to a variable with a declared type? > (untested): > > let A x_as_A= cast(x); > 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