Dear R Gurus,

i recently noticed that R does sloppy argument checking for named
arguments, if the argument contains a dot.
Example:

> f <- function(foo.bar=0) { print(foo.bar) }
> f(foo=1)
[1] 1

I guess, this should be considered as a bug.
Anyway, the consequence is that bugs caused by typing errors
of this kind may are *very* hard to discover in complex progams.

Christian

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to