realbasic-plugins
[Top] [All Lists]

Returning a reference to a local class?

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Returning a reference to a local class?
From: "Theodore H.Smith" <delete at elfdata dot com>
Date: Fri, 20 May 2005 16:53:43 +0100
Delivered-to: realbasic-plugins at lists dot realsoftware dot com

Will this crash or result in a bug?

MyCppClass& Func() {
        MyCppClass instance = "UsesAnAssignmentOperator";
        return instance;
}

--
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>
  • Returning a reference to a local class?, Theodore H.Smith <=