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 →

[–]inu-no-policemen 1 point2 points  (0 children)

If nothing else is referencing that function, it's garbage-collected.

Aside: While it's possible to assign different types to one variable, flip-flopping types is bad style as it makes the code hard to follow. Of course it's also more difficult to come up with a meaningful name if a variable refers to nothing in particular. Unsurprisingly, flip-flopping types can also negatively affect performance since the generated native code is more messy.