Cuis-Smalltalk / Cuis-Smalltalk-Dev

Active development of Cuis Smalltalk
MIT License
458 stars 72 forks source link

String>>#asInteger returns nil when the receiver has no numeric equivalent #143

Closed gstn-caruso closed 5 years ago

gstn-caruso commented 6 years ago

Problem

'hello' asInteger returns nil.

Proposal

I think a better solution is to raise an exception. I'll attach a proposal, just to discuss.

AsInteger.pck.st.zip