1) Dunno - do a test of 10 million iterations or something to compare. I'd imagine Floats are faster, but less accurate.
[edit] Just did a quick test - identical results with add operations. Floats were slightly quicker for multiplication - 20ms faster over ten million iterations.
2) Clarity. That's all. However, if your function is returning a value, then you MUST use parentheses.
3) The pointer is removed. When no pointers to the object exist, garbage collection removes it.
[edit] Just did a quick test - identical results with add operations. Floats were slightly quicker for multiplication - 20ms faster over ten million iterations.
2) Clarity. That's all. However, if your function is returning a value, then you MUST use parentheses.
3) The pointer is removed. When no pointers to the object exist, garbage collection removes it.