> > Do you mean that 'name' and '$name' shoud be distinguished
> > as another name like follows?
>
> They are for sure completely unrelated "objects" but IMO, (PHP)
> variables should never be considered as "objects" at all.
> So '$name' should just not be considered nor as a definition, nor as a
> reference.
I understood.
Though your saying is right, it seems that it is over the capability of
GLOBAL. Since GLOBAL distinguishes symbols only by name, the following
situation may also happen.
$ global -x FooBar
FooBar 4 FooBar.c enum FooBar { ...
FooBar 5 FooBar.c struct FooBar { ...
FooBar 7 FooBar.c int FooBar() { ...
> An alternative would be to be able to configure, like in ctags, what
> kind of "objects" are taken into account
> (classes/methods/variables/interfaces/...)
I agree with you.
To solve this problem, we need to classify symbols, I think.
It is in the TODO list.
--
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global