[Newbies] Re: ifTrue ifFalse help

Richard Wallace rick.m.wallace at gmail.com
Thu Apr 28 13:26:34 UTC 2011


Thanks for all the feedback and analogies to Java.  In addition to the
original question...

Given:
| a b c |
a := 6 // 2.
b := a asCharacter.
c := b isMemberOf: Character.
Transcript show: 'Member of Char: ', c, '   b = ', b; cr.

Result:
Member of Char: true   b =

I was wondering why b is not getting displayed.

Thanks in advance!

On Wed, Apr 27, 2011 at 4:39 PM, Alain_Rastoul <alr.dev at free.fr> wrote:

>
> a String in smalltalk: 'hello'
> aString in java : "hello"
> a Character in smalltalk : $h
> a character in java: 'h'
>
> Cheers
> Alain
>
> "calcrisk33" <rick.m.wallace at gmail.com> a écrit dans le message de news:
> 1303886113281-3477352.post at n4.nabble.com...
> > bool = $a worked like a charm!  So what exactly does $ do?  I'm more
> > familiar
> > with Java and am trying to break that thought process... relating Squeak
> > to
> > Java.
> >
> > Appreciate it!
> >
> > --
> > View this message in context:
> > http://forum.world.st/ifTrue-ifFalse-help-tp3477318p3477352.html
> > Sent from the Squeak - Beginners mailing list archive at Nabble.com.
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20110428/b8a1d2d0/attachment.htm


More information about the Beginners mailing list