[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Internal Time
From: |
Eric Werk |
Subject: |
Re: Internal Time |
Date: |
Fri, 11 Jun 1999 15:23:21 +0200 |
Hi Julie,
Julie Dugdale wrote:
>
> I am trying to get the internal simulation time of certain actions
> displayed on the output window. I'm using the following line:
>
> printf("Time: %d",[self getRole] getCurrentTime];
This line should probably read:
printf("Time: %d", [[self getRole] getCurrentTime]);
Messages sends in Objective C are of the form [anObject method], which
would be equivalent to anObject.method() in C++. They have to be
enclosed in square brackets. The printf was also missing a bracket.
/Eric Werk
==================================
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.
- Internal Time, Julie Dugdale, 1999/06/11
- Re: Internal Time,
Eric Werk <=