Re: Is this correct?
Martin Simmons <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
Actually, EQUALP does descend into pathnames, but LispWorks always uses EQUAL to compare the components on unix-like systems. You can mount a case-sensitive filesystem on macOS as well (e.g. nfs), so there could potentially be different rules for different parts of the name. I suggest using the namestring as the key in an EQUALP hash table if you don't care about case. -- Martin Simmons LispWorks Ltd http://www.lispworks.com/ >>>>> On Fri, 20 Feb 2026 18:11:35 +0100, Marco Antoniotti (as marco dot antoniotti at unimib dot it) said: > > Hi > > Thanks Martin for your answer. > > Tim, the case is that in some cases I am loading an uppercased (or > lowercased) name. Things were all beautiful until I checked what SBCL was > doing. > > Other fun fact: things would still work in my use case (an EQUAL hash table > on pathnames) if EQUALP descended in the pathnames guts; alas, this is not > in ANSI. > > Cheers > > MA > > > On Fri, Feb 20, 2026 at 6:04 PM Tim Bradshaw <[email protected]> wrote: > > > On 20 Feb 2026, at 17:02, Marco Antoniotti (as marco dot antoniotti at > > unimib dot it) <[email protected]> wrote: > > > > > > My code runs on LWM but not on SBCL. Or viceversa. > > > > Can you explain what the actual problem is: are you somehow depending on > > the case of the filename? > > > > -- > Marco Antoniotti, Professor, Director tel. +39 - 02 64 48 79 01 > DISCo, University of Milan-Bicocca U14 2043 http://dcb.disco.unimib.it > Viale Sarca 336 > I-20126 Milan (MI) ITALY > > REGAINS: https://regains.disco.unimib.it/ > _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html