Archived
This forum has been archived. Please start a new discussion on GitHub.
About Classes as Unions
level
in Help Center
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?
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?
0
