[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[s8] simple evaluation


Uploaded Image: alert.gifNote that this expression can crash the app if it runs using JavascriptCore VM!
Read more about this bug in [coco8] Bug Report Page

"Evaluates a simple expression 100 times."
| expression |
expression := '1+2+3+4+5+6+7+8+9+0'."+1+2+3+4+5+6+7+8+9+0+1+2+3+4+5+6+7+8+9+0'."
100 timesRepeat: [:i|
	self print: ' #',i ,' took ',[
	expression doIt] ms ,'ms'
].
^#ok