[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Some filesystem questions

From: Branko Èibej <brane_at_xbc.nu>
Date: 2000-11-28 06:42:39 CET

Jim Blandy wrote:

>>> No, ENTRY isn't the same in both cases. In a CLONE, the entry is just
>>> the name of the directory entry.
>>>
>>> Yes, ENTRIES can be empty. skel.h should allow an empty list; if it
>>> doesn't, that's a bug. An empty list is a skel_t whose `is_atom' and
>>> `children' members are both zero.
>>
>> If you don't mind, I'll fix "structure" and "skel.h" to reflect that.
>> Tomorrow, that is.
>
>
> Okay, but can you explain why you think empty lists are forbidden by
> the statements currently there?
>
Quoting from the initial comment in "skel.h":

   A list consists of a byte 40 (ASCII '('), followed by a series of
   atoms or lists, followed by a byte 41 (ASCII ')'). There
   may be zero or more whitespace characters after the '(' and before
   the ')', and between any pair of elements. */
The way I understand that, there must be at least one atom or list
within a list. I propose to insert an "optionally" before the "followed
by a series of atoms or lists". That would make things unambiguous.

Ah .. stupid me, it says there that "A list may contain zero or more
elements". So I'm dumb and can't remember what I read a few lines
before. Forget it then.

-- 
Brane �ibej
    home:   <brane_at_xbc.nu>             http://www.xbc.nu/brane/
    work:   <branko.cibej_at_hermes.si>   http://www.hermes-softlab.com/
     ACM:   <brane_at_acm.org>            http://www.acm.org/
Received on Sat Oct 21 14:36:15 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.