Liste des Groupes | Revenir à cl forth |
On 3/09/2024 6:11 am, Ruvim wrote:The section "11.6.1.1717 INCLUDE-FILE" [1] does not impose any such restriction on a program.Do you know practical cases of using "include-file" in programs?Here's a question. Is there a temporal dependency on the 'fileid' passed
>
I can't imagine how this word could be used in standard programs.
...
to INCLUDE-FILE ?
On my system 'fileid' for INCLUDE-FILE would need to represent the mostA compilation error is an ambiguous condition, so the system is allowed to do whatever it wants. If the systems shows a wrong file name where an error occurred, this does not make it non-compliant.
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'.Yes. OTOH, a system can obtain a file name from a file handle, see GetFileInformationByHandleEx in Windows, readlink on /proc/self/fd/NNN in POSIX.
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.
Les messages affichés proviennent d'usenet.