emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using empty_string as the only "" string


From: Richard Stallman
Subject: Re: Using empty_string as the only "" string
Date: Tue, 24 Apr 2007 22:05:14 -0400

    ELISP> (eq (substring "ab" 0) (substring "ab" 0))
    nil
    ELISP> (eq (substring "ab" 1) (substring "ab" 1))
    nil
    ELISP> (eq (substring "ab" 2) (substring "ab" 2))
    t

    That doesn't seem a nice behaviour.

Any program that _depends_ on eq to return nil in the last case 
is taking a risk.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]