swarm-support
[Top][All Lists]
Advanced

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

Re: probing static/global variables?


From: mcmullin
Subject: Re: probing static/global variables?
Date: Thu, 20 Mar 1997 09:17:26 -0700 (MST)

On 20 Mar, Ludo Pagie wrote:
> Hello y'all
> 
> (I don't think so, but:) is it possible in any way to probe a variable which 
> is
> not a member of a class; in my case a static variable which is used as a
> 'class-variable'.
> Of course without making a class data member pointing to it.

Dunno' if it will do what you want, but you could add
an *instance method* to return the value of the class
variable; a probe can then have a button you can push
to sample the class variable ... but it won't give you
a running picture of it.  If you absolutely need a
running picture of it, the best approach is probably to
design a special one off object, of which you will have
only one instance, which will have this variable as an
instance var (and will thus be probe-able); the 
instances who want access to it must use methods on
this object to get at it (or you can tweak the objc
scoping directives so exteral objects could get at this
particular var directly, to avoid the messaging
overhead: then the "object" in question is really just
a probe-able wrapper for an application global variable...).

Isn't Swarm fun?

Cheers,

- Barry.

-- 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| Barry McMullin, ALife Group,               |    address@hidden |
| Santa Fe Institute, 1399 Hyde Park Road,   |  Voice: +1-505-984-8800 |
| Santa Fe, NM 87501, USA.                   |  FAX:   +1-505-982-0565 |
| http://www.eeng.dcu.ie/~mcmullin           |                         |
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




reply via email to

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