This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

retrun class object from function


Hello,

I try to find some information about returning class object from function. I find out one possibility. We must use dynamic heap (new, delete). Is there possibility to return class object which is created as local (in body of function, not global)? If there is no way, why it is prohibited? I find out that in older version there was possibility to define return name, which was using for return class from function, but this functionality was removed.

Thank you.

Kind regards

Maros Stefaniciak, Prague.


-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]