[Newbies] enumerated values

Rob Rothwell r.j.rothwell at gmail.com
Fri Sep 26 23:56:54 UTC 2008


Would this work for you?
enum := #(#one #two #three).
enum indexOf: #two.

I haven't ever programmed in Java, but I remember when VB had something
similar...

I haven't found the need for it in Smalltalk yet, though...however, I'm just
getting the hang of it...

Rob


On Fri, Sep 26, 2008 at 6:06 PM, Mark Volkmann <mark at ociweb.com> wrote:

> Is there an equivalent of Java's enumerated values (enum) in Smalltalk?
>
> ---
> Mark Volkmann
>
>
>
>
> _______________________________________________
> 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/20080926/9fce4c83/attachment-0001.htm


More information about the Beginners mailing list