Sujet : Re: encapsulating directory operations
De : antispam (at) *nospam* fricas.org (Waldek Hebisch)
Groupes : comp.lang.cDate : 21. May 2025, 22:19:50
Autres entêtes
Organisation : To protect and to server
Message-ID : <100lg1k$355u$1@paganini.bofh.team>
References : 1 2 3 4 5
User-Agent : tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64))
Paul Edwards <
mutazilah@gmail.com> wrote:
When C90 was being written - or indeed - when K&R was
being written - if there hadn't been pressure to "bring to market",
would you EXPECT a language standard - any language
standard - but in this specific instance the ISO/IEC 9899:1990
committee - to have included a standard form of directory
manipulation?
No need to speculate here: Common Lisp standard which is from
similar period as C includes directory manipulation. In modern
times this is considered one of least useful part of the
language: to run "everywhere" this part is baroque and
promises only a little. In practice two standard compliant
Common Lisp implementatios running on the same system can
produce different results from the same operations. So
to use directory operations one have to be very careful to
avoid nonportable parts.
Technically Common Lisp does not have functions to create
or remove directires, it can work only with existing ones.
-- Waldek Hebisch