Mantis - Squeak 3.8
Viewing Issue Advanced Details
5003 major always 09-19-06 18:26 09-19-06 18:26
ChrisC  
 
normal  
new  
open  
none    
none  
0005003: Duration Creation Keywords return wrong durations
Typing 5 second (or 5 minute or 5 hour or 5 day) will return, respectively, 1 second, 1 minute, 1 hour, and 1 day. If you replace the singular message with the plural version, you get the (what I would consider) expected results - 5 seconds, 5 minutes, 5 hours, and 5 days.

I would prefer that the singular methods return the duration related to the numeric part of the phrase. Or, failing that, that it raises an error.

There are no notes attached to this issue.