|
-
Dec 20th, 2007, 10:59 PM
#2
Re: Aliasing
No, because you're copying the data. Aliasing is, as you probably know.. replacing something with something else. You can't truely use aliasing in Visual Basic.. without proper memory management.
Theres a few different forms of aliasing, one of which is a typedef in C++, which also isn't available in Visual Basic. Another, as used in the above example, is the use of pointers that are being passed around locally and globally.
What they say is true though. Its invaluable to know how compilers work, aswell as that of the target architecture.
During my Game Development Diploma, it became extremely clear to us how important const-correctness was in C++ class design. Since the PlayStation 2 isn't a super computer, anything and everything thats const-correct (read only), is put into a special place in memory, for quick reference. Knowledge like that can - most of the time - be the difference between performance and failure.
chem
Visual Studio 6, Visual Studio.NET 2005, MASM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|