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.

I would not say just as quick. And as for the poor coding, poor coding is relative. When game programming and trying to eek every bit of performance, those Get's and Set's actually are just a tad bit slower.

Method SetX(Value:Int)
X=Value
End Method

SomeObject.SetX(4)

is slower than

SomeObject.X=4

since, it is setting a variable rather than calling a function and setting a variable.

I really find it strange that there are people so vehemently against it. I can understand someone not needing it or saying it isn't necessary, but to say that you don't want it in there seems odd to me.

Anyway, I can live without it, so if so many people are opposed, it is no big deal.