Constructors/Destructors

Started by
12 comments, last by Desdemona 19 years, 7 months ago
Great. (Although I personally don't require anything to be done quickly, since I probably won't be working on anything angelscript related in a week or so. :)
Advertisement
No worries. I found the problem already.

I'll release a new version with the latest changes today, or first thing tomorrow.

I did however discover that GNUC returns objects of type std::string in memory, even though the size is only 4 bytes. This doesn't follow what I had found earlier, which means that I will have to do more research to find out when and why GNUC returns objects in memory. It will probably result in yet another flag for RegisterObjectType().

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

void AssignString (std::string &other, std::string *thisPointer)
{
new(thisPointer) std::string (other);
}

Ignoring the comment about how this should return the reference to thisPointer, I am not familiar with this syntax of new. Whats going on here?

J
Err, Just noticed the 'Constructors...' thread answers this question.

J

This topic is closed to new replies.

Advertisement