basicIsSqueak test
Nevin Pratt
nevin at smalltalkpro.com
Mon Dec 23 00:13:10 UTC 2002
Hi all,
I'm currently porting GLORP version 0.2.18 to Squeak. When I did the
0.2.14 port, I created the following method for the GLORP Dialect class:
basicIsSqueak
Smalltalk
at: #SqueakPage
ifAbsent: [^ false].
^ true
This method must reliable return 'true' if and only if the code is
called from within a Squeak image. I couldn't think of any particular
"reliable" test other than what I have shown above.
Does anybody have a different suggestion for a reliable #basicIsSqueak test?
Thanks,
Nevin
More information about the Squeak-dev
mailing list
|