3 ms·
If the left is a function call, it will still error out because you can't assign to it. If you're doing if (var1 == var2) then yoda expressions won't sav
by cbhl 13y ago
If the left is a function call, it will still error out because you can't assign to it.
If you're doing
if (var1 == var2)
then yoda expressions won't save you, however.
- koenigdavidmj 13y agoAlso, in C++ you can assign to the return value of a function returning a reference.