realbasic-plugins
[Top] [All Lists]

Re: c++ class return

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: c++ class return
From: "Theodore H.Smith" <delete at elfdata dot com>
Date: Fri, 20 May 2005 17:02:22 +0100
Delivered-to: realbasic-plugins at lists dot realsoftware dot com

I'm doing this with a subclass of C++'s "string".

I know that this is actually a pointer being returned, even if it looks like a whole object... but C++'s string class does some fancy stuff with operators and I was wondering if maybe the class actually gets copied on return instead of just returning a pointer to something that already got disposed when the stack returned.

--
elfdata.com/plugin/ Industrial strength string processing, made easy.

"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>