| To: | lorenz@usgs.gov |
|---|---|
| Subject: | Re: (non)-evaluation of an optional argument |
| From: | Agin.Patrick@hydro.qc.ca |
| Date: | Thu, 15 Jul 2004 10:01:02 -0400 |
| Cc: | s-news@lists.biostat.wustl.edu, s-news-owner@lists.biostat.wustl.edu |
|
Thank you David for your answer.
Am I wrong?
-----Original Message-----
Patrick,
"Patrick Joseph" <patrick_nospam@hotmail.c To: s-news@lists.biostat.wustl.edu om> cc: Sent by: Subject: [S] (non)-evaluation of an optional argument s-news-owner@lists.biosta t.wustl.edu
07/14/2004 09:07 PM
Hi, I have a question about the evaluation of an optional argument of a
myfct _ function(a,...) {
When I do the call myfct(10), obviously it prints "list()" and returns 10.
Now if I define tmp<-9 and do the call myfct(10,b=tmp), it prints "list(b
Is it possible to force the evaluation of tmp when calling the function? Thank you for any hint,
(I'm using S-Plus 4.5 on Windows 2000) _________________________________________________________________
--------------------------------------------------------------------
--------------------------------------------------------------------
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: (non)-evaluation of an optional argument, David L Lorenz |
|---|---|
| Next by Date: | Re: (non)-evaluation of an optional argument, David L Lorenz |
| Previous by Thread: | Re: (non)-evaluation of an optional argument, David L Lorenz |
| Next by Thread: | Re: (non)-evaluation of an optional argument, David L Lorenz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |