Mail Archives: djgpp/1997/08/19/17:51:30
In article <33F92811 DOT 2F51 AT usa DOT net>, Gal <wribak AT usa DOT net> writes:
> Sorry guys for the troublesome mess... I'm in the transition of porting
> code from pure assembly (80x86) and Pascal code to C++, quite a jump
> isn't it? Please bear with me, I thank yee!
>
> -----
> Carefully I watched the "watch" of "box.length" as I traced into a
> constructor. The "box.length" suddenly, from a value, turned into "not
> available."
> -----
>
> While I was working with C++ using RHIDE, I noticed that trying to
> "watch" a value from a private variable in a class gives me "not
> available." I knew that instant that in C++, unlike Pascal, a class has
> a private section, unless otherwise declared public.
When a C++ member function calls a member function in another class, the
first class goes out of scope until the second member function returns.
The only work around for this is to declear the first class 'static' or as a
static pointer
but this has side effects, which may affect your program.
>
> Please tell me how to view the value while in a method (procedure) from
> a class. Help? ;)
From within a class, the members can be refered to by
(*this)
--
___ .
/ /|\ /|
/ / | \ / | Colin S. Miller
/ \ | v | csmiller AT iname DOT com
| \| |
| \ | PgDip/MSc Software Engineering
| |\ | University of Abertay
\ | \ | (01382) 308000 ext 2800
\ | / |
\___/ |
- Raw text -