Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Victormeriqui: if someone was reading your code
- Victormeriqui: how would they knoe
- Victormeriqui: Value returned a reference
- Kobra: it's implied?
- Kobra: how else would you set it?
- Kobra: BUT WAIT
- Kobra: WAIT
- Kobra: WAIT
- Kobra: Victormeriqui: if someone was reading your code
- Victormeriqui: how would they knoe
- Victormeriqui: Value returned a reference
- Victormeriqui: no, it's not, when you look at that you dont know what Size() returns
- Kobra: Victormeriqui: if someone was reading your code
- Victormeriqui: how would they knoe
- Victormeriqui: Value is a member variable?
- Kobra: you just got zinged by your own logic
- Victormeriqui: no i didnt
- Victormeriqui: if it was setvalue
- Victormeriqui: it'd be self explained
- Kobra: what the fuck?
- Victormeriqui: if it was a var with public access
- Kobra: we're talking
- Victormeriqui: it'd be self explained
- Kobra: items not exposed
- Kobra: you dumb shit
- Kobra: ytou can't set a controls size
- Kobra: and inside of the control code
- Kobra: _Size is used
- Kobra: you can instantly see it's a member variable
- Victormeriqui: brb dinner, and either name stuff right or only you will be able to read it, with in a few weeks becaus eafter that you'll come back and think wtf is this
- Kobra: a PRIVATE member variable
- Victormeriqui is now Away.
- Kobra: no
- Kobra: you're dumb
- Kobra: you can't set a control size
- Kobra: for a Vector
- Kobra: i have
- Kobra: public:
- double X, Y;
- Kobra: it makes sense, it's a public variable, but there is no bloody SetSize, you can ForceResize a control, but it may not obey to that instruction, thus it's not SETTING it, it's ASKING it to resize ITSELF, the control uses _Size as a local INTEERNAL to the class variable, thus they shouldn't be able to access it, hence it being protected/private, and for readability or IDEs without super godlike intelisense, they can see the variable is bloody protected/private. it's really that fucking simple, _X = youcan't touch _X, you may be able to mess or prod with it, but direct access is disallowed!
- Kobra: i mean, take this code for example: Ddrl46: Console.SetCursorPosition(_PositionX + _SizeX - 1, _PositionY + _SizeY - 1);
- you can instantly see what's private
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement