Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » How to fix this strong behaviore of MSC compiler & temporary value ?
Re: How to fix this strong behaviore of MSC compiler & temporary value ? [message #44616 is a reply to message #44615] Sat, 25 April 2015 10:07 Go to previous messageGo to previous message
deep is currently offline  deep
Messages: 273
Registered: July 2011
Location: Bangalore
Experienced Member
Hello Omari

Try this,
Declare first. Then use.
A a ;

CONSOLE_APP_MAIN
{
	A a ;   // this is changed
	a = GetA();	
	DUMP(a.x);
}


A a = GetA();
Declaration and assignment on same line does not work particularly function return value.
I don't know why it is this way.

I experienced this behavior with some other functions.


Warm Regards

Deepak

[Updated on: Sat, 25 April 2015 18:49]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Initialization for Buffer<T>
Next Topic: mingw/gdb troubles
Goto Forum:
  


Current Time: Wed Sep 03 09:28:27 CEST 2025

Total time taken to generate the page: 0.04905 seconds