From p.dalgaard@biostat.ku.dk  Tue Oct 26 15:01:55 1999
From: p.dalgaard@biostat.ku.dk (Peter Dalgaard BSA)
Date: 26 Oct 1999 16:01:55 +0200
Subject: dodgy list operation (PR#298)
In-Reply-To: J.C.Rougier@durham.ac.uk's message of "Tue, 26 Oct 1999 15:46:21 +0200 (MET DST)"
References: <199910261346.PAA10545@pubhealth.ku.dk>
Message-ID: <x2ln8q8bl8.fsf@blueberry.kubism.ku.dk>

J.C.Rougier@durham.ac.uk writes:

> I can generate a segmentation fault as follows, where I would expect a
> syntax error:
> 
> fred <- as.list(1:10)
> lapply(fred, "[[")
> 
...
> status.rev 0                     
> major      0                     
> minor      64.1                  
             ^^^^
Ahem. That bug is certainly not present in 0.65.1 or later:

R> fred <- as.list(1:10)
R> lapply(fred, "[[")
Error in FUN(X[[i]], ...) : no index specified

> year       1999                  
> month      May                   
> day        8                     
> language   R                     


-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


dodgy list operation (PR#298)
Peter Dalgaard BSA