Re: Using include-file

Liste des GroupesRevenir à cl forth 
Sujet : Re: Using include-file
De : anton (at) *nospam* mips.complang.tuwien.ac.at (Anton Ertl)
Groupes : comp.lang.forth
Date : 03. Sep 2024, 07:50:18
Autres entêtes
Organisation : Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID : <2024Sep3.085018@mips.complang.tuwien.ac.at>
References : 1
User-Agent : xrn 10.11
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

Date Sujet#  Auteur
2 Sep 24 * Using include-file26Ruvim
2 Sep 24 +* Re: Using include-file7mhx
3 Sep 24 i`* Re: Using include-file6mhx
9 Nov 24 i `* Re: Using include-file5rt
9 Nov 24 i  `* Re: Using include-file4mhx
9 Nov 24 i   +* Re: Using include-file2Stephen Pelc
10 Nov 24 i   i`- Re: Using include-file1dxf
10 Nov 24 i   `- Re: Using include-file1rt
3 Sep 24 +* Re: Using include-file11Anton Ertl
3 Sep 24 i+* Re: Using include-file5albert
3 Sep 24 ii+* Re: Using include-file3mhx
3 Sep 24 iii`* Re: Using include-file2sjack
4 Sep 24 iii `- Re: Using include-file1dxf
4 Sep 24 ii`- Re: Using include-file1dxf
3 Sep 24 i`* Re: Using include-file5Ruvim
23 Oct 24 i `* Re: Using include-file4Ruvim
24 Oct 24 i  `* Re: Using include-file3Anton Ertl
24 Oct 24 i   +- Re: Using include-file1albert
26 Oct 24 i   `- Re: Using include-file1Ruvim
4 Sep 24 +* Re: Using include-file2Gerry Jackson
4 Sep 24 i`- Re: Using include-file1Gerry Jackson
4 Sep 24 +* Re: Using include-file2dxf
17 Sep 24 i`- Re: Using include-file1Ruvim
24 Oct 24 `* Re: Using include-file3minforth
27 Oct 24  `* Re: Using include-file2Ruvim
27 Oct 24   `- Re: Using include-file1minforth

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal