[Qt-interest] [Newbie question] Why string.toAscii().data() doesn't work?

Giancarlo Amati ilferraresebono at hotmail.it
Thu Mar 26 16:27:55 CET 2009


Alll right! that's make more sense!

Many thanks!

> Date: Thu, 26 Mar 2009 16:14:19 +0100
> From: apaku at gmx.de
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] [Newbie question] Why	string.toAscii().data()	doesn't work?
> 
> On 26.03.09 12:23:15, Giancarlo Amati wrote:
> > 
> > So at the end of the story it's only a matter of the statement line..!?
> 
> Not quite, its a matter of temporary object lifetime. In
> 
> foo( bar().baz() );
> 
> the object returned by bar() lives until the foo() call is completely done.
> So even if baz returns some internal data of the bar-object that internal
> data will live until the foo() call has completed. So with the above
> there's only one pitfal: If foo() stores the internal data from baz()
> itself and later on something tries to access it.
> 
> Andreas
>  
> -- 
> Someone is speaking well of you.
> 
> How unusual!
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest

_________________________________________________________________
25 GB di spazio gratis online: attiva SkyDrive!
http://clk.atdmt.com/GBL/go/136430529/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090326/cfd6449a/attachment.html 


More information about the Qt-interest-old mailing list