From maechler@stat.math.ethz.ch  Fri Jan 31 09:24:03 2003
From: maechler@stat.math.ethz.ch (maechler@stat.math.ethz.ch)
Date: Fri Jan 31 09:24:03 2003
Subject: [Rd] empty array indexing with dimnames (PR#2507)
Message-ID: <200301310824.JAA22244@pubhealth.ku.dk>

>>>>> "BDR" == Brian D Ripley <ripley@stats.ox.ac.uk>
>>>>>     on Thu, 30 Jan 2003 23:49:22 +0100 (MET) writes:

    BDR> On Thu, 30 Jan 2003 maechler@stat.math.ethz.ch wrote:
    >> This is a bug that will not often trigger, and only
    >> happens for arrays (but not matrices) ending up with 0
    >> dimensions:

    BDR> The bug is a missing else branch of an if condition at
    BDR> line 431 of subset.c.

and you have already fixed it for 1.7.0

    BDR> I don't think the buglets are wrong.  You don't drop
    BDR> length 0 dimensions.  If you did, the object would be
    BDR> of the wrong length.  You only drop length 1 dimensions.

Yes, of course, you are right!

     <....>

    BDR> -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of
    BDR> Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
    BDR> University of Oxford, Tel: +44 1865 272861 (self) 1
    BDR> South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG,
    BDR> UK Fax: +44 1865 272595

Martin Maechler <maechler@stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO C16	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><



[Rd] empty array indexing with dimnames (PR#2507)
maechler@stat.math.ethz.ch