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

Re: K-fest for oz?



 To: Mark McDougall
Mark McDougall wrote:
if not busy then
  attendees <= attendees + 1;
end if;

Not sure if that second language was supposed to be Pascal or not, but if it was, it still needs some work:

if not busy then
  attendees := attendees + 1;

-or-

if not busy then
begin
  attendees := attendees + 1;
end;

-or-

case busy of
  false : attendees := attendees + 1;
end;

I think that covers most of the Pascal syntax variants...   ;-)

Cheers,
Mike