[gameprogrammer] Cast by return type?

Is there a way to automatically cast by implicit type as follows:

struct MyStruct
{
char *s;
}

void Func(char *s)
{
};

void main(void)
{
 MyStruct myStruct;
 myStruct.s=0;
 Func(MyStruct);
}

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: