Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #28898
| From | Bernd Paysan <bernd.paysan@gmx.de> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: RfD: Interpret S\" |
| Date | 2014-03-04 02:46 +0100 |
| Organization | 1&1 Internet AG |
| Message-ID | <lf3b8q$l8u$1@online.de> (permalink) |
| References | <op.xbtceeqosu5d0p@david> <530c6015.1058201878@news.demon.co.uk> <8acdce2a-ee68-4e63-bc5c-25c524fe413d@googlegroups.com> |
m.a.m.hendrix@tue.nl wrote: > As the size of an S" or S\" buffer is unlimited, I don't think > it matters that you can have more than one of them. The standard only requires the buffer to be 80 characters long, not unlimited. So it's essentially 80 more characters to be wasted on a precious embedded system... The solution I've used on Gforth EC is that S" in interpretation mode actually just returns the input buffer space, so it doesn't live longer than the current line. This works just fine, and it even would allow a RENAME- FILE, if Gforth EC had the file word-set (it doesn't, but using S" in interpretation mode is still a good idea). In so far as I don't claim that Gforth EC implements the File wordset, the S" is "standard", because its interpretation semantics is undefined. The choice is the one I think is most reasonable on an embedded system. S\" is not implemented, and never will (on Gforth EC), it wastes way too much precious memory to be implemented. -- Bernd Paysan "If you want it done right, you have to do it yourself" http://bernd-paysan.de/
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
RfD: Interpret S\" "Peter Knaggs" <pjk@bcs.org.uk> - 2014-02-25 01:14 +0000
Re: RfD: Interpret S\" "Alex McDonald" <blog@rivadpm.com> - 2014-02-25 08:26 +0000
Re: RfD: Interpret S\" stephenXXX@mpeforth.com (Stephen Pelc) - 2014-02-25 09:29 +0000
Re: RfD: Interpret S\" m.a.m.hendrix@tue.nl - 2014-02-25 03:43 -0800
Re: RfD: Interpret S\" Bernd Paysan <bernd.paysan@gmx.de> - 2014-03-04 02:46 +0100
Re: RfD: Interpret S\" albert@spenarnc.xs4all.nl (Albert van der Horst) - 2014-02-25 12:25 +0000
Re: RfD: Interpret S\" anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-02-26 11:00 +0000
Re: RfD: Interpret S\" stephenXXX@mpeforth.com (Stephen Pelc) - 2014-02-26 15:18 +0000
Re: RfD: Interpret S\" "Elizabeth D. Rather" <erather@forth.com> - 2014-02-26 08:28 -1000
Re: RfD: Interpret S\" Mikael Nordman <oh2aun@gmail.com> - 2014-02-26 12:33 -0800
Re: RfD: Interpret S\" anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-02-27 15:00 +0000
Re: RfD: Interpret S\" Andrew Haley <andrew29@littlepinkcloud.invalid> - 2014-02-25 04:55 -0600
Re: RfD: Interpret S\" anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2014-02-26 11:53 +0000
csiph-web