SELF is driving me nuts!

Previous topic - Next topic

Schranz0r

like in C++  ->this.<-
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

backslider

Yes...  :)
"this." would be very very nice, because it´s used in many big languages!
For e.g. C++, C# and Java.

Cheers

Kitty Hello

I can't use "this", since it's a protected keyword. self has the same amount of characters, though. ;)

XanthorXIII

I don't think this drives me insane but there could be an easy work around. Maybe the editor can detect when you are editing within a TYPE ENDTYPE, scans what Variables are defined and then as you are typing in those variables it automatically adds the word self to them? 
Owlcat has wise

Kitty Hello

I can make a macro, when you type ".." it writes "self." - would that be cool?

XanthorXIII

What about s. for the Macro?
Owlcat has wise

Schranz0r

Or:

Bla as SELF

Bla.dosomething ?
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

Leginus

personally i like self.  I think it does what it says on the tin  :whistle: