From: Matthias T. <mt...@we...> - 2013-03-02 08:56:06
|
Hi Enoch, > Regarding .S > > Indeed, says Forth 2012 RC1, "the format of the display is > implementation-dependent". > > However, doesn't GFORTH display order make a better sense: In which way: by adding the stack depth or the ordering? > > 1 2 3 .s <3> 1 2 3 ok > > While ours: > >> 1 2 3 .s > 3 2 1 ok I agree that amforth's display looks confusing at the first glance. Expecting a but? yes: I read from left to right (as probably many others do too) and I expect the TOS to read first. Gforth's display confuses me. I always have to scan the entire line to get the information I want. Basically the built-in .s is a debugging aid for the core development. I use it rather often when I dig in internals. A more user friendly .s is better implemented as forth code, DEPTH and PICK are available (I think they are useful for that task). Matthias |