<br><br><div class="gmail_quote">2009/12/5 Stéphane Rollandin <span dir="ltr">&lt;<a href="mailto:lecteur@zogotounga.net">lecteur@zogotounga.net</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
yes, yes.  But real Smalltalk programs have to interface with external programming languages, typically through a C-inlfuenced ABI.  In that context it makes sense.  I second Bert&#39;s proposal,  true asInteger == 1 and: [false asInteger == 0].<br>

</blockquote>
<br></div>
why not use a brand new selector ? the purpose of getting 1 or 0 from a Boolean has nothing to do with an actual conversion, better it is some kind of an encoding, si IMO neither #asBit nor #asInteger are meaningful here. #as0or1 would do the job. and you could even implement #as0orMinus1 besides if you like.<br>
</blockquote><div><br></div><div>I agree. Maybe #asBitNumber is a valid selector...</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Stef<br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Cédrick<br>