:: KBs ::

ByRef or ByVal

Created Date: 4/23/2008
Last Modified Date: 4/23/2008
When passing items around it is always better to pass the object around (ByVal) rather then the pointer (ByRef). Many times it will make sense to pass the pointer around but passing the pointer results in more indirection, which is slower than accessing a value that is on the stack. If walking through the heap is not necessary then it is best to avoid the ByRef.
:: Better Coding Practices :: Inside the Compiler ::