bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variables taken as object references in PHP


From: Shigio YAMAGUCHI
Subject: Re: Variables taken as object references in PHP
Date: Thu, 24 Nov 2011 17:24:38 +0900

> > 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 <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



reply via email to

[Prev in Thread] Current Thread [Next in Thread]