From joehl at gmx.de  Thu Oct  6 18:38:05 2005
From: joehl at gmx.de (=?ISO-8859-1?Q?=22Jens_Oehlschl=E4gel=22?=)
Date: Thu, 6 Oct 2005 18:38:05 +0200 (MEST)
Subject: [Rd] Subscripting fails if name of element is "" (PR#8161)
Message-ID: <14643.1128616685@www34.gmx.net>

Dear Thomas,

> This looks deliberate (there is a function NonNullStringMatch that does 
> the matching).  I assume this is because there is no other way to 
> indicate that an element has no name.

> If so, it is a documentation bug -- help(names) and FAQ 7.14 should 
> specify this behaviour.  Too late for 2.2.0, unfortunately.

I respectfully disagree: the element has a name, its an empty string. Of
course "" is a doubtful name for an element, but as long as we allow this
name when assigning names()<- we also should handle it like a name in
subscripting. The alternative would be to disallow "" in names at all.
However, both alternatives rather look like code changes, not only
documentation. 

Best regards


Jens Oehlschl?gel

-- 
Highspeed-Freiheit. Bei GMX superg?nstig, z.B. GMX DSL_Cityflat,



[Rd] Subscripting fails if name of element is "" (PR#8161)
=?ISO-8859-1?Q?=22Jens_Oehlschl=E4gel=22?=