Re: Using include-file

Liste des GroupesRevenir à cl forth 
Sujet : Re: Using include-file
De : ruvim.pinka (at) *nospam* gmail.com (Ruvim)
Groupes : comp.lang.forth
Date : 23. Oct 2024, 19:43:46
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vfbg53$25emh$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 2024-09-03 23:07, Ruvim wrote:
On 2024-09-03 10:50, Anton Ertl wrote:
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.
 Yes, overriding the system's file search mechanism used by "included" is a very interesting idea!
Another possible reason to not use `INCLUDED`:
| INCLUDED may allocate memory in data space before
| it starts interpreting the file.
So if this effect is unacceptable (for example, if you include part of a definition), then the solution is `INCLUDE-FILE`.
Also, `REQUIRED` does not load a file that was loaded by `INCLUDED`. `INCLUDE-FILE` is free of that too.
--
Ruvim

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