Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#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:


> proc readoptionalparameters(list #) { return(#); };
> readoptionalparameters(list("this is a string inside a list"));
   this is a string inside a list
> readoptionalparameters("this is a string without list");
   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 Oleksandr

Resolution: wontfix
Status: newclosed

comment:2 Changed 12 years ago by Oleksandr

too difficult

Note: See TracTickets for help on using tickets.