Re: Running safe.e ???
- Posted by Derek Parnell <ddparnell at bigpond.com> Sep 20, 2003
- 436 views
----- Original Message ----- From: "Robert Craig" <rds at RapidEuphoria.com> To: "EUforum" <EUforum at topica.com> Subject: Re: Running safe.e ??? > > > Bernie Ryan wrote: > > Rob: Why does this fail ? > > ... > > > > =================================== > > include safe.e > > > > atom a a = allocate_string("") > > ? a > > ? peek(a) > > ... > > You've found a bug in safe.e > Thanks for pointing this out. > I must be using a different safe.e, because it works fine here. Also, if you're changing this, you might consider return BAD1, BAD2, etc... so we can easily distinguish the particular reason for rejecting a bad address. So instead of just saying "BAD POKE", it could say "BAD POKE CODE 1" etc... BTW, there is an unused local variable called 'half' in the safe.e allocate() function. -- Derek