strtok()
montgomery farrar tidwell
mtidwell at mail.com
Tue Sep 21 15:10:51 UTC 1999
Howdy,
not only does that work nice, but i also understand it :)
now, what about 'put sometext into word 7 of line 3 of blah'
\\//_
Matt Rosen wrote:
>
> "Andrew C. Greenberg" wrote:
>
> > The following block does the hypercard thing, albeit in a rough and
> > ready fashion:
> >
> > hypercard := [:str :line :word |
> > ((str lineNumber: line) findTokens: ' ') at: word].
> >
> > and
> >
> > string := 'now is the winter of our discontent
> > made glorious summer by this
> > son of York'
> >
> > so that
> >
> > get value: string value: 2 value: 3
>
> I think Andrew meant to say:
>
> hypercard value: string value: 2 value: 3
>
> > evaluates to 'summer'
>
> --
> Matt Rosen
> San Joaquin Delta College
More information about the Squeak-dev
mailing list
|