Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Add Global variables

> Maybe global variables should use the :: operator (C++ only....) when
being created by the CDT.

That's exactly what CDT does. We also use file names to distinguish
static variables with the same names.

Regarding this case, it's hard to say what is happening. Please, submit
a bug. 

Thanks,
Mikhail
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Marc Khouzam
Sent: Monday, March 17, 2008 2:40 PM
To: CDT General developers list.
Subject: RE: [cdt-dev] Add Global variables

Hi,

since both variables have the same name, and the CDT uses that name to
fetch the value, it gets the value of the variable that is in scope (the
local f).
But since it shows f with a global variable icon, it probably should
show the proper value.

Maybe global variables should use the :: operator (C++ only....) when
being created by the CDT.

Just a thought...

Marc


-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx on behalf of ???
Sent: Sun 3/16/2008 10:09 PM
To: CDT General developers list.
Subject: [cdt-dev] Add Global variables
 
hi,
        bug: value is local,but icon is global variable.

        1. run to 17
        2. Variable window ->Add Global Variables... -> f


Best regards
Lijun


-- 
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.




Back to the top