<br><br><div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>I loaded Aconcagua-mx.1.6 and Chalten-mx.1.3
 in Squeak 3.9. The<br>following all give errors:<br><br>GregorianDay today + 1 day<br>GregorianDateTime now + 1 day<br>GregorianDay today next: 5<br>GregorianYear current + 1 year<br>5 months</blockquote><div>&nbsp;</div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I guess I have to thank you. After hearing what a piece of shit<br>Seaside is because of its lack of documentation it&#39;s relieving to see
<br>a framework with no class comments at all. A quick browsing through<br>same classes showed also no method comments.</blockquote><div><br>jaja, it seems to me that you did not look good enough.... just look at the Test!!! They are all the documentation you need! and more!! real examples, live code! not just documentation.... We defenetly use different development techniques... Also, remember the paper! 
<br>Links:<br><a href="http://www.iam.unibe.ch/~ducasse/Teaching/CoursAnnecy/0506-M1-COO/A%20New%20Object-Oriented%20Model%20of%20the%20Gregorian%20Calendar.pdf">http://www.iam.unibe.ch/~ducasse/Teaching/CoursAnnecy/0506-M1-COO/A%20New%20Object-Oriented%20Model%20of%20the%20Gregorian%20Calendar.pdf
</a><br><a href="http://prog2.vub.ac.be/~cderoove/esugtalks/Wilkinson.pdf">http://prog2.vub.ac.be/~cderoove/esugtalks/Wilkinson.pdf</a>&nbsp;&nbsp; (ESUG Presentation)<br><br>About the code you tried:<br>1) GregorianDay today + 1 day&nbsp; -&gt; It will not work becuase a date is not polymorphic with numbers. You have to do: &quot;GregorianDate today next&quot; or &quot;GregorianDate today next: 1 * day&quot; Remember the *, that allows you to create measures easily
<br><br>2) GregorianDateTime now + 1 day ---&gt; Same as 1)<br><br>3) GregorianDay today next: 5 --&gt; It will not work because 5 is not a measure of time, it is just a number. Try<br>&quot;GregorianDay today next: 5 * day&quot;&nbsp; 5 * day is a measure of time
<br><br>4) GregorianYear current + 1 year --&gt; Same as 1) but using a measure expressed in year, for example &quot;2 * year&quot;<br>5) 5 months --&gt; Measure are created in many ways. We decided not to clutter the number protocol with each unit you could have... because measures are arithmetic representations of a number times its unit, the right way to create them is using the arithmetic operator * (See our paper about Aconcagua. Link:
<br><a href="http://portal.acm.org/citation.cfm?id=1094964&amp;coll=ACM&amp;dl=ACM&amp;CFID=20205775&amp;CFTOKEN=19800555">http://portal.acm.org/citation.cfm?id=1094964&amp;coll=ACM&amp;dl=ACM&amp;CFID=20205775&amp;CFTOKEN=19800555
</a> )<br><br>Hope this help.<br>Hernan.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Cheers<br>Philippe<br><br>&gt; &gt; &gt; These objects are
<br>&gt; &gt; &gt; polymorphic with numbers respect to the arithmetic messages such as +,<br>&gt; -, *,<br>&gt; &gt; &gt; etc., that means that you can use them in arithmetic formulas<br>&gt; &gt;<br>&gt; &gt; That&#39;s true to a certain extent in Chronos for example you can:
<br>&gt; &gt; Timepoint now - (CalendarDuration months: 1)<br>&gt; &gt; (CalendarDuration months: 1) * 5<br>&gt; &gt; but you can&#39;t:<br>&gt; &gt; 5 * (CalendarDuration months: 1)<br>&gt;<br>&gt; Ok, but it is not only the functionality what it is important for us... for
<br>&gt; us it is also important the way you &quot;write&quot; these things... for example,<br>&gt; with Chalten/Aconcagua you can write:<br>&gt;<br>&gt; 5 * month ---&gt; Equivalent to 5 * (CalendarDuration months: 1)<br>
&gt; 5 * meter / (second * second) --&gt; A measure of acceleration if you create<br>&gt; meter as a unit using Aconcagua<br>&gt; 1/10 * year --&gt; Represents an interest rate of 10% yearly.<br>&gt;<br>&gt; As you can see, time measure are not only related only to the time domain
<br>&gt; but used in other domains... that is way for us it is important to support<br>&gt; this type of behavior and in a DSL way...<br>&gt;<br>&gt; Bye,<br>&gt; Hernan.<br>&gt;<br>&gt; &gt; &gt; 5) And of course, I like Chalten&#39;s model more that Chronos :-). For me
<br>&gt; it is<br>&gt; &gt; &gt; easier to use, but this is just a matter of taste...<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; There is a paper we wrote 2 years ago about the problems that the<br>&gt; Smalltalk<br>&gt; &gt; &gt; date classes have and the advantages of having a better model. If you
<br>&gt; are<br>&gt; &gt; &gt; interested on having better date and time classes, I recommend you to<br>&gt; read<br>&gt; &gt; &gt; the paper... you may not like it, but at least you will see other people<br>&gt; &gt; &gt; ideas...
<br>&gt; &gt; &gt; We use that model (Chalten) in a production system and we believe it<br>&gt; allowed<br>&gt; &gt; &gt; us to avoid many common mistakes related to financial systems.... but<br>&gt; hey,<br>&gt; &gt; &gt; that&#39;s just a feeling, nothing I can prove formally.
<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I hope you can do something useful.<br>&gt; &gt; &gt; Bye,<br>&gt; &gt;<br>&gt; &gt; Chronos is a bit ugly in Squeak because Squeak does not support<br>&gt; &gt; namespaces which means that classes that model the same concept as
<br>&gt; &gt; Squeak Chronology classes have different names (unless you mess with<br>&gt; &gt; shared pools). Also loading it is a bit of a pain with Monticello<br>&gt; &gt; (this is the fault of Monticello and not Chronos).
<br>&gt; &gt;<br>&gt; &gt; Cheers<br>&gt; &gt; Philippe<br>&gt; &gt;<br>&gt; &gt; &gt; Hernan.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; On 4/16/07, J J &lt;<a href="mailto:azreal1977@hotmail.com">azreal1977@hotmail.com
</a>&gt; wrote:<br>&gt; &gt; &gt; &gt; I have looked at Cronos but it is really huge, and the classes that<br>&gt; come<br>&gt; &gt; &gt; &gt; with the image are already very close.&nbsp;&nbsp;I will have to look at<br>&gt; Chalten,
<br>&gt; &gt; &gt; but<br>&gt; &gt; &gt; &gt; what is wrong with a few upgrades to the classes that come with<br>&gt; Squeak?<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;From: &quot;Hernan Wilkinson&quot; &lt;<a href="mailto:hernan.wilkinson@gmail.com">
hernan.wilkinson@gmail.com</a>&gt;<br>&gt; &gt; &gt; &gt; &gt;Reply-To: The general-purpose Squeak developers<br>&gt; &gt; &gt; &gt; &gt;list&lt; <a href="mailto:squeak-dev@lists.squeakfoundation.org">squeak-dev@lists.squeakfoundation.org
</a>&gt;<br>&gt; &gt; &gt; &gt; &gt;To: &quot;The general-purpose Squeak developers<br>&gt; &gt; &gt; &gt; &gt;list&quot;&lt; <a href="mailto:squeak-dev@lists.squeakfoundation.org">squeak-dev@lists.squeakfoundation.org</a>
&gt;<br>&gt; &gt; &gt; &gt; &gt;Subject: Re: Date classes<br>&gt; &gt; &gt; &gt; &gt;Date: Mon, 16 Apr 2007 14:28:09 -0300<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;Before doing something with Date, I recommend you to take a look at
<br>&gt; &gt; &gt; &gt; &gt;&quot;Chalten&quot; or &quot;Cronos&quot;. Chalten is in SqueakSource.... I think Cronos<br>&gt; too.<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;Hernan.<br>&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;On 4/16/07, J J &lt; <a href="mailto:azreal1977@hotmail.com">azreal1977@hotmail.com</a>&gt; wrote:<br>&gt; &gt; &gt; &gt; &gt;&gt;<br>&gt; &gt; &gt; &gt; &gt;&gt;Hi all,<br>&gt; &gt; &gt; &gt; &gt;&gt;
<br>&gt; &gt; &gt; &gt; &gt;&gt;I am doing some stuff with dates and I noticed the date classes that<br>&gt; &gt; &gt; come<br>&gt; &gt; &gt; &gt; &gt;&gt;with the default Squeak image are very nice and very close to having
<br>&gt; &gt; &gt; &gt; &gt;&gt;everything I would want.&nbsp;&nbsp;But there are a few inconsistencies here<br>&gt; and<br>&gt; &gt; &gt; &gt; &gt;&gt;there, and things missing that would make things easier.<br>&gt; &gt; &gt; &gt; &gt;&gt;
<br>&gt; &gt; &gt; &gt; &gt;&gt;So what is the procedure to updating this?&nbsp;&nbsp;I think it&#39;s part of the<br>&gt; &gt; &gt; core<br>&gt; &gt; &gt; &gt; &gt;&gt;system so I probably can&#39;t just do a monicello package update
<br>&gt; &gt; &gt; &gt; &gt;&gt;somewhere?&nbsp;&nbsp;Do<br>&gt; &gt; &gt; &gt; &gt;&gt;I have to do it through mantis?<br>&gt; &gt; &gt; &gt; &gt;&gt;<br>&gt; &gt; &gt; &gt; &gt;&gt;Thanks,<br>&gt; &gt; &gt; &gt; &gt;&gt;Jason<br>
&gt; &gt; &gt; &gt; &gt;&gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;&gt;_________________________________________________________________<br>&gt; &gt; &gt; &gt; &gt;&gt;Download Messenger. Join the i&#39;m Initiative. Help make a difference
<br>&gt; &gt; &gt; today.<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt;&gt;<a href="http://im.live.com/messenger/im/home/?source=TAGHM_APR07">http://im.live.com/messenger/im/home/?source=TAGHM_APR07</a><br>&gt; &gt; &gt; &gt; &gt;&gt;
<br>&gt; &gt; &gt; &gt; &gt;&gt;<br>&gt; &gt; &gt; &gt; &gt;&gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; _________________________________________________________________
<br>&gt; &gt; &gt; &gt; Get a FREE Web site, company branded e-mail and more from Microsoft<br>&gt; Office<br>&gt; &gt; &gt; &gt; Live!<br>&gt; &gt; &gt;<br>&gt; <a href="http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/">
http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/</a><br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;
<br>&gt; &gt;<br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br><br></blockquote></div><br>