[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
accessing counter
From: |
Pietro Terna |
Subject: |
accessing counter |
Date: |
Sat, 26 Jun 1999 18:34:51 +0200 |
Hi All,
a typical structure in the objects of my last application is:
anObject.h
...
int count;
anObject.m
- createEnd
{
count = 0;
...
- doSomething
{
count = count % stepNumberInACycle;
if (count == 0) { a lot of things}
count++;
...
if (count == 1) { another lot of things}
It runs, but with a lot of problems: e.g. accessing twice an object in
the
same step requires a method with the 'count++;' line and anotoher without it.
I'm wondering if I can replace my 'count' variable with an internal
Swarm
variable.
Thanks, Pietro
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- accessing counter,
Pietro Terna <=