View Single Post
  #1 (permalink)  
Old 04-09-2004
level level is offline
Registered User
 
 
Join Date: Feb 2004
Location: China
Posts: 71
About Classes as Unions

the .ice file is

class base
{
int d;
};
class stringbase extends base
{
string s;
};
class Hello
{
nonmutating void sayHello(base i);
idempotent void shutdown();
};
....

In the implement file , in the function

void sayHello(base i);
How can I dynamic_cast or static_cast the base pointer to stringbase pointer?
Reply With Quote