Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Conditional jump or move depends on uninitialised value(s)
Re: Conditional jump or move depends on uninitialised value(s) [message #19869 is a reply to message #19866] |
Wed, 28 January 2009 09:46 |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
I personally don't think this is a major issue:
1) All Upp 'basic' types (those with public member variables, Point_, Rect_ etc) exibit the same behaviour, so you only have to learn it once.
2) C++ convention is that variables are uninitialised, so you should be aware of the issue already. Buffer<int> x(2000); would be just as uninitialised.
On the other hand, in probably 99.9% of cases initialisation would be safer and come without any practical performance consequences.
Perhaps there is a case for having initialisation on by default, but available to be switched off with a compiler flag for those who really care?
[Updated on: Wed, 28 January 2009 09:50] Report message to a moderator
|
|
|
|
|
Conditional jump or move depends on uninitialised value(s)
By: Novo on Mon, 26 January 2009 02:35
|
|
|
Re: Conditional jump or move depends on uninitialised value(s)
By: mirek on Mon, 26 January 2009 10:04
|
|
|
Re: Conditional jump or move depends on uninitialised value(s)
By: Novo on Mon, 26 January 2009 16:10
|
|
|
Re: Conditional jump or move depends on uninitialised value(s)
By: mirek on Mon, 26 January 2009 17:29
|
|
|
Re: Conditional jump or move depends on uninitialised value(s)
By: Novo on Tue, 27 January 2009 06:06
|
|
|
Re: Conditional jump or move depends on uninitialised value(s)
By: mirek on Tue, 27 January 2009 10:25
|
|
|
Re: Conditional jump or move depends on uninitialised value(s)
By: Novo on Wed, 28 January 2009 05:43
|
|
|
Re: Conditional jump or move depends on uninitialised value(s)
By: mrjt on Wed, 28 January 2009 09:46
|
|
|
Re: Conditional jump or move depends on uninitialised value(s)
By: mirek on Wed, 28 January 2009 16:21
|
|
|
Re: Conditional jump or move depends on uninitialised value(s)
By: Novo on Thu, 29 January 2009 02:56
|
Goto Forum:
Current Time: Mon Apr 29 11:27:54 CEST 2024
Total time taken to generate the page: 0.02832 seconds
|