#348 closed bug (wontfix)
type of optional parameters
Reported by: | steenpass | Owned by: | somebody |
---|---|---|---|
Priority: | minor | Milestone: | 3-1-4 and higher |
Component: | dontKnow | Version: | 3-1-3 |
Keywords: | Cc: |
Description
> proc readoptionalparameters(list #) { return(#); }; > readoptionalparameters(list("this is a string inside a list")); [1]: this is a string inside a list > readoptionalparameters("this is a string without list"); [1]: this is a string without list
From within the procedure, you can't tell whether it was called with a list or a string as argument.
Think of a procedure "myproc" with two optional arguments, a list (which may contain strings) and a string. There are default values for arguments which are not given explicitly. If 'myproc(list("somestring"));', what to do?
Change History (2)
comment:1 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
Note: See
TracTickets for help on using
tickets.
too difficult