[gameprogrammer] Cast by return type?

  • From: Kevin Jenkins <gameprogrammer@xxxxxxxxxx>
  • To: gameprogrammer@xxxxxxxxxxxxx
  • Date: Sat, 29 Mar 2008 11:39:34 -0700

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: