Method Allocate:TLED (Position:TBiFloat,Size:Float,Color:TRGB,Shape:TShape,Rotation:Int = 0) Self.TimeSinceChange = 0 Self.Shape = Shape Self.Position = Position.CopyCreate() Self.Color = Color Self.Size = Size Self.Rotation = Rotation Self.IsItOn = False Return Self End Method
Question: Does self slow down the compiler, have no effect, or infact make it more efficient?
Reason: Ive started to use BLide as my main editor*, and really like the Object popup with all the methods/functions fields that happens when you press . **,
And so in my Methods, because Im a bit forgetful I always start the call to a member function with Self. ***
I also**** Name all the parameters, with the names of what they are going to be
And I would like to know if this is bad practice.
* All these people wondering what 3d wrapper/engine to use, and I cannot even decide which ide ;(
** Like in Protean when you press \ to get a field list
*** I Dont need to remember anything, Its Brill
**** I Have to remember even less, its Brill