[BUG][VM]

Tim Rowledge tim at sumeru.stanford.edu
Thu Aug 14 21:02:24 UTC 2003


Whilst doing some work with John on getting the simulator to run a
morphic image (not a trivial task) we found that the implementation of
getAttribute(int id) for Acorn & win32 is incorrect. Mac & Unix both
fail the prim for any unsupported attribute id whereas Acorn & win32
were letting it succeed and returning an empty String. Since the code
clearly says we should return nil, this is something to be fixed.

Test code attached; answer collection should be full of nils and a few
strings giving the type of machine, name of OS & version, image name
etc.

tim
--
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
When we write programs that "learn", it turns out we do and they don't.

begin 644 TestGetAttributes.st,ffd
M?&-O;&P@?`UC;VQL(%\@3W)D97)E9$-O;&QE8W1I;VX@;F5W+ at TM,3`@=&\Z
M(#$P(&1O.ELZ:7P-8V]L;"!A9&0Z("A3;6%L;'1A;&L at 9V5T4WES=&5M071T
M<FEB=71E.B!I*5TN#3$P,#`@=&\Z(#$P,3`@9&\Z6SII?`UC;VQL(&%D9#H@
H*%-M86QL=&%L:R!G9713>7-T96U!='1R:6)U=&4Z(&DI72X-8V]L;&%D
`
end



More information about the Squeak-dev mailing list