Deutsch   English   Français   Italiano  
<nnd$5929dbee$3536f029@3bc5a8541eb541f9>

View for Bookmarking (what is this?)
Look up another Usenet article

Newsgroups: comp.lang.forth
References: <v5fjkr$1p13i$1@dont-email.me> <5c21b9a70973cda8da6fac285f5b2137@www.novabbs.com>
From: albert@spenarnc.xs4all.nl
Subject: Re: 0 SET-ORDER =?UTF-8?B?d2h5Pw==?=
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: albert@cherry.(none) (albert)
Message-ID: <nnd$5929dbee$3536f029@3bc5a8541eb541f9>
Organization: KPN B.V.
Date: Wed, 26 Jun 2024 11:12:09 +0200
Path: ...!feeds.phibee-telecom.net!news.mixmin.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!193.141.40.65.MISMATCH!npeer.as286.net!npeer-ng0.as286.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feed.abavia.com!abe006.abavia.com!abp001.abavia.com!news.kpn.nl!not-for-mail
Lines: 32
Injection-Date: Wed, 26 Jun 2024 11:12:09 +0200
Injection-Info: news.kpn.nl; mail-complaints-to="abuse@kpn.com"
Bytes: 2229

In article <5c21b9a70973cda8da6fac285f5b2137@www.novabbs.com>,
minforth <minforth@gmx.net> wrote:
>IMO, it is a simple security mechanism against other users
>breaking out of an application program and taking control
>of the shell.

I don't think so. The requirement to have FORTH-WORDLIST and SET-ORDER
means that you run the system normally after using this, including the
repl QUIT.
The intention of the standard that the minimum search order contains
a method to get the system under control. `FORTH' is way better than
manipulations with wordlists.
I cheated in ciforth. FORTH puts the FORTH-WORDLIST on top and is
a regular vocabulary/namespace.
 In fact it is equivalent to
 : FORTH GET-ORDER 1+ >R FORTH-WORDLIST R>  SET-ORDER ;

So the ONLY namespace contains prefixes (handles numbers and strings)
and the word FORTH to recover.
FORTH and ONLY are named wordlist/ vocabularies.

To seal off in ciforth you can do:
'FORTH HIDDEN ONLY
From now on only numbers and strings are recognized.

Groetjes Albert
-- 
Don't praise the day before the evening. One swallow doesn't make spring.
You must not say "hey" before you have crossed the bridge. Don't sell the
hide of the bear until you shot it. Better one bird in the hand than ten in
the air. First gain is a cat purring.            - the Wise from Antrim -