I4E open_source
extension: 001.001
Date: Wed, 21 Jun 2000 17:09:09 +0100
To: "simon pope"
From: Tim Schofield
Subject: Re: ice open source test
Where does the code start execution? i.e. in the C language where
would the "main" be
The thing about volume is difficult unless you want to take a
different approach.
each item could be an object with properties
e.g.
set thisMilk = new(milk)
set thisMilk.volume = 2
set thisMilk.temp = 60
more properly if you wanted to make sure your units where correct you
would cast the integers thus:
set thisMilk.volume = (pint) 2
set thisMilk.temp = (centigrade) 60
but this would take a lot of re-writing
value ranges are usualy denoted thus: (5..12)
you could do the random thing like
set thisButter = new(butter)
set thisButter = (ounces) one_of(2..4)
mark.greco@virgin.net
http://bak.spc.org/ice
http://bak.spc.org