[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string-match bug?
From: |
Frank Fredstone |
Subject: |
Re: string-match bug? |
Date: |
Thu, 10 Dec 2009 12:40:53 -0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
> Frank Fredstone wrote:
>> Andreas Röhler <andreas.roehler@easy-emacs.de> writes:
>>
>>> Aren't
>>>
>>> (string-match "" "a")
>>>
>>> and
>>>
>>> (string-match "" "")
>>>
>>> different cases in some perspective?
>>
>> You can think of it like this:
>>
>> If you line up 3 boxes left to right, where among them are there no
>> boxes? There are no boxes before the first, between the first and the
>> second, between the second and the third and after the last. The first
>> place (position left to right) where there are no boxes, is before the
>> first (position 0).
>>
>>
>
> well, isn't the first 0?
> before the first would be -1 then?
Before the first, would be -1, if there were a box there. But, we're
talking about where no boxes are. There is no box before the first, at
position 0.
- Re: string-match bug?, (continued)
- Message not available
- Re: string-match bug?, David Kastrup, 2009/12/14
- Message not available
- Re: string-match bug?, Stefan Monnier, 2009/12/09
- Re: string-match bug?, Andreas Röhler, 2009/12/10
- Message not available
- Re: string-match bug?, Frank Fredstone, 2009/12/10
- Re: string-match bug?, Andreas Röhler, 2009/12/10
- Re: string-match bug?, Juanma Barranquero, 2009/12/10
- Message not available
- Re: string-match bug?,
Frank Fredstone <=
- Message not available
- Re: string-match bug?, David Kastrup, 2009/12/14