Re: portable or not? Volatile strings

Liste des GroupesRevenir à cl forth 
Sujet : Re: portable or not? Volatile strings
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forth
Date : 13. Aug 2024, 05:07:51
Autres entêtes
Organisation : Ausics - https://newsgroups.ausics.net
Message-ID : <66badc17$1@news.ausics.net>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 13/08/2024 5:34 am, albert@spenarnc.xs4all.nl wrote:
...
In my book the code should be
 
                        "        "
                        "######  "
                        "  ##    "
                        "        "
DEF-BRICK BRICK1
 
Instead of
 
DEF-BRICK BRICK1        S"         "
                        S" ######  "
                        S"   ##    "
                        S"         "
 
The code (untested) could be
: DEF-BRICK CREATE
    2>R 2>R 2>R 2>R
    2R> ,, 2R> ,, 2R> ,, 2R> ,,
 DOES>  ... ;

OTOH it's no less difficult to write...

: M"  [CHAR] " PARSE  HERE  OVER ALLOT  SWAP MOVE ;

: DEF-BRICK  CREATE  DOES>  ROT 4 * ROT + 2* CHARS + ;

DEF-BRICK BRICK1         M"         "
                         M" ######  "
                         M"   ##    "
                         M"         "


Date Sujet#  Auteur
12 Aug 24 * Re: portable or not? Volatile strings8Ruvim
12 Aug 24 `* Re: portable or not? Volatile strings7Ruvim
12 Aug 24  `* Re: portable or not? Volatile strings6albert
13 Aug 24   `* Re: portable or not? Volatile strings5dxf
21 Aug 24    `* Re: portable or not? Volatile strings4Hans Bezemer
22 Aug 24     `* Re: portable or not? Volatile strings3albert
24 Aug 24      `* Re: portable or not? Volatile strings2dxf
24 Aug 24       `- Re: portable or not? Volatile strings1albert

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal