Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #132084
| From | anton@mips.complang.tuwien.ac.at (Anton Ertl) |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Using include-file |
| Date | 2024-09-03 06:50 +0000 |
| Organization | Institut fuer Computersprachen, Technische Universitaet Wien |
| Message-ID | <2024Sep3.085018@mips.complang.tuwien.ac.at> (permalink) |
| References | <vb565d$2vcqf$1@dont-email.me> |
Ruvim <ruvim.pinka@gmail.com> writes:
>Do you know practical cases of using "include-file" in programs?
One way I am thinking about is to implement INCLUDED etc. Systems
deal differently with relative filenames for INCLUDED, with less
differences for OPEN-FILE. So if I want to implement a certain
handling of relative filenames for INCLUDED in order to get rid of
system differences, one way to do it is to do it for OPEN-FILE and
then perform INCLUDE-FILE.
>Using other system-specific means, this word can probably be used to
>organize inter-process communication: when a file descriptor (e.g. a
>pipe) is passed from one process to another and used as the input
>source. But why do you need to load Forth code this way?
Heinz Schnitter implemented Open Network Forth, a distributed system,
where the parts communicated by sending Forth source code to each
other. One could implement that by having network connections
(telnet-style or ssh-style) between the parts, and the receiver could
INCLUDE-FILE the file-id that represents his end of the connection.
However, Open Network Forth was written around 1984, long before
INCLUDE-FILE was standardized. Bernd Paysan uses ideas from it in his
work, inclluding sending Forth commands between tasks, but AFAIK does
not use INCLUDE-FILE for that.
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: https://forth-standard.org/
EuroForth 2024: https://euro.theforth.net
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar
Using include-file Ruvim <ruvim.pinka@gmail.com> - 2024-09-03 00:11 +0400
Re: Using include-file mhx@iae.nl (mhx) - 2024-09-02 21:22 +0000
Re: Using include-file mhx@iae.nl (mhx) - 2024-09-03 05:38 +0000
Re: Using include-file rt4all@hetnet.nl (rt) - 2024-11-09 08:29 +0000
Re: Using include-file mhx@iae.nl (mhx) - 2024-11-09 12:06 +0000
Re: Using include-file Stephen Pelc <stephen@vfxforth.com> - 2024-11-09 18:13 +0000
Re: Using include-file dxf <dxforth@gmail.com> - 2024-11-10 13:54 +1100
Re: Using include-file rt4all@hetnet.nl (rt) - 2024-11-10 13:47 +0000
Re: Using include-file anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2024-09-03 06:50 +0000
Re: Using include-file albert@spenarnc.xs4all.nl - 2024-09-03 10:23 +0200
Re: Using include-file mhx@iae.nl (mhx) - 2024-09-03 11:54 +0000
Re: Using include-file sjack@dontemail.me (sjack) - 2024-09-03 15:28 +0000
Re: Using include-file dxf <dxforth@gmail.com> - 2024-09-04 11:36 +1000
Re: Using include-file dxf <dxforth@gmail.com> - 2024-09-04 16:44 +1000
Re: Using include-file Ruvim <ruvim.pinka@gmail.com> - 2024-09-03 23:07 +0400
Re: Using include-file Ruvim <ruvim.pinka@gmail.com> - 2024-10-23 22:43 +0400
Re: Using include-file anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2024-10-24 06:32 +0000
Re: Using include-file albert@spenarnc.xs4all.nl - 2024-10-24 11:30 +0200
Re: Using include-file Ruvim <ruvim.pinka@gmail.com> - 2024-10-26 09:19 +0400
Re: Using include-file Gerry Jackson <do-not-use@swldwa.uk> - 2024-09-04 10:54 +0100
Re: Using include-file Gerry Jackson <do-not-use@swldwa.uk> - 2024-09-04 11:09 +0100
Re: Using include-file dxf <dxforth@gmail.com> - 2024-09-04 21:13 +1000
Re: Using include-file Ruvim <ruvim.pinka@gmail.com> - 2024-09-17 18:33 +0400
Re: Using include-file minforth@gmx.net (minforth) - 2024-10-24 12:44 +0000
Re: Using include-file Ruvim <ruvim.pinka@gmail.com> - 2024-10-27 21:31 +0400
Re: Using include-file minforth@gmx.net (minforth) - 2024-10-27 22:32 +0000
csiph-web