Original Post
🔒 Locked
Var/Class init performance question
Advertisement
Yes I meant C++, sorry about the lack of info.
Nice that they generate identical code. What about this?
3.)
String myStr;
myStr = "Foo";
Obviously this is a poor choice anyway because it could be done on one line, and it leaves 'myStr' uninitialized when it is created, which is bad.
Nice that they generate identical code. What about this?
3.)
String myStr;
myStr = "Foo";
Obviously this is a poor choice anyway because it could be done on one line, and it leaves 'myStr' uninitialized when it is created, which is bad.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement