<br><br><div class="gmail_quote">2008/11/25 Michael van der Gulik <span dir="ltr">&lt;<a href="mailto:mikevdg@gmail.com">mikevdg@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br><br><div class="gmail_quote">On Tue, Nov 25, 2008 at 5:46 AM, Randal L. Schwartz <span dir="ltr">&lt;<a href="mailto:merlyn@stonehenge.com" target="_blank">merlyn@stonehenge.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt;&gt;&gt;&gt;&gt; &quot;Filip&quot; == Filip Malczak &lt;<a href="mailto:filet00@gmail.com" target="_blank">filet00@gmail.com</a>&gt; writes:<br>
<br>
Filip&gt; You can always make subclass of Interval for example OpenedInterval , add<br>
Filip&gt; two variables: left and right.Make new methods:<br>
<div>OpenedInterval&gt; from: aNumber to: aNumber left: aBoolean<br>
OpenedInterval&gt; from: aNumber to: aNumber right: aBoolean<br>
OpenedInterval&gt; from: aNumber to: aNumber left: aBoolean right: aBoolean<br>
<br>
</div>You&#39;re exposing implementation there. &nbsp;I suggest:<br>
<br>
beOpenLeft<br>
beClosedLeft<br>
isOpenLeft<br>
isClosedLeft<br>
<br>
and the corresponding &quot;right&quot; methods, rather than an explicit boolean.<br>
More flexibility later.<br>
</blockquote></div><br><br></div>Or how about<br><br>a := 1 to: ∞.<br></blockquote></div><br>Actually, this works fine in the image already:<br><br>(1 to: Float infinity) includes: 1000&nbsp;&nbsp; ---&gt; true.<br><br>I didn&#39;t really expect it to work. Smalltalk is good like that :-).<br>
<br>Gulik.<br clear="all"><br>-- <br><a href="http://people.squeakfoundation.org/person/mikevdg">http://people.squeakfoundation.org/person/mikevdg</a><br><a href="http://gulik.pbwiki.com/">http://gulik.pbwiki.com/</a><br>