Oddly enough, you can't get a Number as a Number (GST 2.1.10 and,
I'm told, 2.1.11):

gst> Number respondsTo: #asNumber !
false
gst> 

Something like this seems reasonable:

!Number class methodsFor: 'converting'!

asNumber
   "Let someone ask for a number as a number"
   ^self
!

...or has this already been done?

(I suppose I should get arch installed so I can fetch a recent version
of the tree and so be able to check directly.)

-- 
Stremler


_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to