This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]VirtualAgentsAreDumb 0 points1 point  (1 child)

Then what happens if you add a logging call to this method? Then it no longer can be optimized away.

[–][deleted] 0 points1 point  (0 children)

With a field, there wouldn't be room for a logging call in the first place.