links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Applescript container notion
Last updated at 9:17 am UTC on 5 October 1999
Andrew C. Greenberg made a comment on the Applescript container notion discussing Unicode support in Squeak and the String class

Date: Wed, 22 Sep 1999 02:09:06 -0400

A newbie recently asked how to compute the equivalent of:

word 4 of line 7


set word 4 of line 7 to "foobar"

Should these sort of operations, presumably defined somehow in terms
of operations on the underlying Character class be abstracted, or are
there orthogonal operations that provide access to the functionality
that should be better preserved.

Is the Applescript container notion, however fluffy, perhaps a better
model than we have considered to date? Is it important to a
programming language? Can it be efficient ever?

Tim Rowledge answered:

Date: Wed, 22 Sep 1999 08:58:57 -0700 (BST)

Strings do not have lines, nor even words. Paragraphs (or just maybe FormattedSentences) have lines and words. A String is just a long list of characters. Linebreaks, words etc only have meaning once the string is formatted as part of a larger document-like concept.

adding some text ;-)

hallo daar