On 4/27/06, Kyku <[EMAIL PROTECTED]> wrote: > Certainly the scope resolution operator (::) could be expanded as well, > and in a twofold fashion I think: > 1) no word before :: complete global variables > 2) a word before :: complete type's static members > > What is nasty in this (and generally after . and ->, too) is that in > certain contexts one'd like to expand only public members and in others > all members. So the current location within functions/classes would have > to be known to be able to decide.
Understanding scope is a difficult thing to do. You'll have to parse the current buffer to get the scope you are in and then 'flatten' the scope from that point (i.e. include locals from the scope and all parent scopes).
