🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

member functions that return an object gets invalid parameter

Started by
10 comments, last by Deyja 18 years, 5 months ago
Oops! Thanks for correcting me.

I've updated the original post, so as not to cause confusion to others that might read it.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
And it works great. :) I can tell you why it wasn't noticed earlier; I'm actually doing something a bit wierd. I originally had an actual member function bound with asCALL_THISCALL. It worked fine then, and this is what most people do. I did something a little wierd after that - I had to insert code between the script and that member function call, so I did something like

string func(parms,thispointer)
{
//new code here...
thispointer->func(parms);
};

And it worked for awhile. Until I finished roughing it out and actually used the parameters. :/

This topic is closed to new replies.

Advertisement