Deutsch   English   Français   Italiano  
<87wmn3z2dp.fsf@nosuchdomain.example.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Keith Thompson <Keith.S.Thompson+u@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: Writing own source disk
Date: Wed, 05 Jun 2024 11:10:58 -0700
Organization: None to speak of
Lines: 17
Message-ID: <87wmn3z2dp.fsf@nosuchdomain.example.com>
References: <v3hmha$3banl$1@dont-email.me> <87sexvm1lr.fsf@bsb.me.uk>
	<v3iu4n$3i607$1@dont-email.me> <87mso2mky5.fsf@bsb.me.uk>
	<v3k49t$3rdhi$1@dont-email.me>
	<87h6e91r91.fsf@nosuchdomain.example.com>
	<87cyox1r5e.fsf@nosuchdomain.example.com>
	<v3p72o$t16n$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 05 Jun 2024 20:10:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e46fb4f9b5052ac42d5a7acf6667e1c2";
	logging-data="1129759"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+QjHgF/v1piBvQUOGgnFGQ"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:EAcJawnb3Dr+ZcYoMAlJdb8+DAM=
	sha1:jOe1qHNer3wQpocRUX1rp4zVPRQ=
Bytes: 1889

Mikko <mikko.levanto@iki.fi> writes:
> On 2024-06-04 00:35:25 +0000, Keith Thompson said:
[...]
>> #embed is of course handled at compile time.  It's very likely, but
>> still not quite guaranteed, that `#embed __FILE__` will be able to
>> access the source file.
>
> An operating system might refuse to open an already opened file.
> There is no good reason to refuse when all accesses are for read-only
> but a supid operating system might think otherwise.

That seems unlikely, and would be a concern only if some real-world OS
actually behaved that way.

-- 
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */