Sujet : Re: Using include-file
De : dxforth (at) *nospam* gmail.com (dxf)
Groupes : comp.lang.forthDate : 04. Sep 2024, 12:13:06
Autres entêtes
Organisation : Ausics - https://newsgroups.ausics.net
Message-ID : <66d840c3$1@news.ausics.net>
References : 1
User-Agent : Mozilla Thunderbird
On 3/09/2024 6:11 am, Ruvim wrote:
Do you know practical cases of using "include-file" in programs?
I can't imagine how this word could be used in standard programs.
...
Here's a question. Is there a temporal dependency on the 'fileid' passed
to INCLUDE-FILE ?
On my system 'fileid' for INCLUDE-FILE would need to represent the most
recently opened file. Otherwise should a compilation error occur the wrong
statistics e.g. file-name will be printed.
AFAICS ANS only guarantees the contents of a file represented by 'fileid'.
The issue of filenames - if/when/how they're stored - is a detail left to the
implementer. It's no problem for INCLUDED which binds opening of the file
with compilation. However INCLUDE-FILE potentially separates these two.