Is the object returned from a function still created when it is not used? – stackoverflow.com

Consider the following code. What happens when doStuff() is called but the return value is not used? Is SomeClass still created? Of course the creation itself can have important side effects, but so ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Is the object returned from a function still created when it is not used? – stackoverflow.com"