gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] Gforth Digest, Vol 80, Issue 1


From: Mario Beaulieu
Subject: Re: [gforth] Gforth Digest, Vol 80, Issue 1
Date: Tue, 30 Apr 2019 17:10:38 -0400

Hi,

I'm so used to type .S that I would keep it as the standard. Also, the 'new' .S 
might turn out to be useful. What about keeping the old one as standard and use 
another word for the new one? I'm sure you thought about this though. What 
about .S$  ?

Mario

Envoyé de mon iPad

> Le 30 avr. 2019 à 12:00, address@hidden a écrit :
> 
> Send Gforth mailing list submissions to
>    address@hidden
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>    https://lists.gnu.org/mailman/listinfo/gforth
> or, via email, send a message with subject or body 'help' to
>    address@hidden
> 
> You can reach the person managing the list at
>    address@hidden
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Gforth digest..."
> 
> 
> Today's Topics:
> 
>   1. Classic or smart .S ? (Anton Ertl)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 30 Apr 2019 17:12:34 +0200
> From: Anton Ertl <address@hidden>
> To: address@hidden
> Subject: [gforth] Classic or smart .S ?
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
> 
> In Gforth the classic .S produces just numbers in the current base,
> e.g.:
> 
> <7> 140403976810720 0 140403977391576 140403977391576 0 11192792 
> 140403976810872
> 
> Gforth also supports a smart .S that uses heuristics to determine what
> kind of data is on the stack and displays it appropriately; the same
> stack data displayed with the smart .S shows:
> 
> <7> `noop 0 `fuenf `fuenf 0 $81F9D8 `execute
> 
> where `<word> means the execution token of <word>.  Addresses are
> shown in hex with a "$" prefix.  The smart .S currently also shows
> strings:
> 
> s" abcdefghijk" 3 /string .s \ outputs: <2> "defghijk"  ok 2
> 
> Up to a few days ago you got the classic .S if you typed ".S".  To get
> the smart .S, you had to type "...".
> 
> With the current git head, you get the smart .S when you type ".S".
> To get the classic .S, you have to say
> 
> ' . is .s.
> 
> After doing that, the last stack shown above is shown as
> 
> <2> 21765267 8
> 
> What do you think should be the default for .S and ~~: the classic or
> the smart .S ?
> 
> - anton
> 
> 
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> _______________________________________________
> Gforth mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/gforth
> 
> 
> ------------------------------
> 
> End of Gforth Digest, Vol 80, Issue 1
> *************************************




reply via email to

[Prev in Thread] Current Thread [Next in Thread]