HOM - Higher Order Messages

Alan Lovejoy squeak-dev.sourcery at forum-mail.net
Wed Apr 19 09:24:24 UTC 2006


Trygve: "And what does this wonderful compiler do with 7/4/2006 ?
It is 7 April here, 4th July there. >:-o"

Good point.

In the VW and Dolphin versions of Chronos, there are instance methods of
String such as #mdyAsDate, #dmyAsDate and #ymdAsDate, that parse a
YearMonthDay (a "date") from a String.  The method selector should make it
clear what the expected interpretation of '7/4/2006' is:

	'7/4/2006' dmyAsDate => 2006-April-07
	'7/4/2006' mdyAsDate => 2006-July-04

--Alan






More information about the Squeak-dev mailing list