Re: [stack] Is this language concatenative?

Manfred Von Thun <[email protected]>
Newsgroups gmane.comp.lang.concatenative
Message-ID <C264DFB0.936%[email protected]>


On 3/5/07 1:22 AM, "John Cowan" <[email protected]> wrote:

> Michael Nedzelsky scripsit:
> 
>> > I think you mean the following:
>> >        "a" intern "b" intern "c" intern [] cons cons cons
> 
> Yes, of course.  That comes of posting code late at night....
> 
>> > But if any literal list can be constructed using only string literals,
>> > intern, [] and cons, then the subset of Floy in which the only quotation
>> > is empty list is already sufficient. Am I missing anything here?
> 
> Only a historical fact: that it was I who added intern to Joy's
> primitive words when modifying the Joy interpreter to add
> general gc, floating-point support, and files, and therefore
> Manfred's papers don't reflect it.

Actually I discussed Floy after your modifications of Joy. In all modesty,
at that time I did not really grasp the possible uses of the intern
operator. After your recent post I did try out intern, with some surprises:

³1² intern ³2² intern ³3² intern ³4² intern [] cons cons cons cons
produces a nice looking list of what seem to be integers.
But now try: [dup*] map

³Anna² intern ³Bob Charles² intern ³Donald²  intern [] cons cons cons
produces a nice looking list of what seem to be four names.
But now try: reverse

  - Manfred



[Non-text portions of this message have been removed]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.