At 01:54 2017-02-14, Dave Crozier DaveC@Flexipol.co.uk wrote:
Mike, It is extremely hands in certain circumstances and can save you loads of extra programming work. However like yourself I tend to forget about it (as opposed to never knowing about it!!) and only after the event do I realise I could have made life easier for myself!!
I might have used it the odd time, but dodefault() does it for me.
I did check to see how much of it is in my app and was surprised to see "::" is used in 48 files. It turned out to be just notation. I use "::" for making clear in comments that something is a class (instead of an object) as in someclass:: and someclass::somemethod()
[snip]
Sincerely,
Gene Wirchenko
Gene... good idea, never thought of using it like that as an aide memoir.
Dave
-----Original Message----- From: ProFox [mailto:profox-bounces@leafe.com] On Behalf Of Gene Wirchenko Sent: 14 February 2017 22:29 To: ProFox Email List profox@leafe.com Subject: RE: Scope Resolution ::
At 01:54 2017-02-14, Dave Crozier DaveC@Flexipol.co.uk wrote:
Mike, It is extremely hands in certain circumstances and can save you loads of extra programming work. However like yourself I tend to forget about it (as opposed to never knowing about it!!) and only after the event do I realise I could have made life easier for myself!!
I might have used it the odd time, but dodefault() does it for me.
I did check to see how much of it is in my app and was surprised to see "::" is used in 48 files. It turned out to be just notation. I use "::" for making clear in comments that something is a class (instead of an object) as in someclass:: and someclass::somemethod()
[snip]
Sincerely,
Gene Wirchenko
[excessive quoting removed by server]
On 2017-02-14 17:29, Gene Wirchenko wrote:
At 01:54 2017-02-14, Dave Crozier DaveC@Flexipol.co.uk wrote:
Mike, It is extremely hands in certain circumstances and can save you loads of extra programming work. However like yourself I tend to forget about it (as opposed to never knowing about it!!) and only after the event do I realise I could have made life easier for myself!!
I might have used it the odd time, but dodefault() does it for me.
but this use of the Scope Resolution operator allowed me to jump 2 levels in the OOP hierarchy, Gene. DODEFAULT(x,y) would have ran the method 1 above, and that's not what I needed. Like I said, at first, it didn't seem very OOP to me, but revisiting it, I suppose it is.