Could really do with a Delphi "WITH" equivalent

BlitzMax Forums/BlitzMax Programming/Could really do with a Delphi "WITH" equivalent

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

well having a pointer/alias to the end object of MyHumoungousType.SomeOtherPArt.AnotherBit is probably quicker than the code at runtime having to check each object referenced by the various parts of MyHumoungousType.SomeOtherPArt.AnotherBit until the end object is reached. Perhaps compiler optimisation means that the code makes a reference to the end object at the start because it knows it'g going to use it again a few times in a row - but I don't know how clever compilers are..