Re: Two questions about eq
Spiros Bousbouras wrote:
1) The HS says that
(eq (cons 'a 'b) (cons 'a 'b))
always returns false but
(eq '(a . b) '(a . b))
might be true. Why is this ?
Because '(a . b) is a literal object (and should not be modified), a
compiler might make both references of them point to the same cons.
2) Under what (realistic) circumstances might
(eq 1 1) be false ?
An implementation could create two different 1 objects. According to
Cliki at least, in ABCL EQL fixnums are not EQ. (I'm having trouble
duplicating that though).
.
Relevant Pages
- Need help figuring out: "CVT1100 Duplicate Resource: type ICON"
... I tried changing the value of typelib resource ID - I tried a whole ... Since the MSDN groups couldn't offer any enlightenment other than to say ... I commented out ALL references I got "CVT1100 duplicate resource type Dialog ... This program compiles using the 4.2 compiler - there is still a version ... (microsoft.public.dotnet.languages.vc) - Re: RAD vs. performance
... Which is ok because ints and floats have different semantics anyway. ... better off writing an IDL compiler in this case. ... counts) yet still large numbers of cons cells are turning into garbage (at ... (comp.lang.misc) - Re: VACPP Compiler v3.6.5
... The IBM CD-ROM has four bugs. ... So there were two enviroment variables pointing to the same folder at the same time which led to the warning and error messages. ... I personally installed the VisualAge 3.00 package, and then later installed the 3.65 C compiler into the same directories. ... I personally have references to the IBM CPP directories in the ... (comp.os.os2.programmer.misc) - RE: Huge project - long build time
... We too are having terrible speed problems with VS.NET. ... Until the middle of last week, build times were reasonable and the compiler ... now takes 20 minutes to rebuild the system. ... > references with dll references. ... (microsoft.public.dotnet.general) - Re: behavior-preserving optimization in C, was compiler bugs
... any forward references to the name in the same file, ... How does a compiler know about other files? ... definitions of the same symbol in multiple object files. ... expected behaviour of the linker. ... (comp.compilers) |
|