Bugs item #2124130, was opened at 2008-09-23 09:57
Message generated for change (Comment added) made by boncz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2124130&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PF/compiler
Group: Pathfinder CVS Head
>Status: Pending
>Resolution: Fixed
Priority: 4
Private: No
Submitted By: Jens Teubner (teubner)
Assigned to: Jens Teubner (teubner)
Summary: PF: Multiple function parameters with same name

Initial Comment:
A silly one: Pathfinder currently allows function declarations where two 
parameters have the same name:

  declare function foo($x, $x)
  {
    $x
  };

  foo(1,2)

This obviously is nonsense and should not be allowed.

Working on it...

----------------------------------------------------------------------

>Comment By: Peter Boncz (boncz)
Date: 2009-11-12 10:39

Message:
not a serious issue; an error message is given

----------------------------------------------------------------------

Comment By: Stefan Manegold (stmane)
Date: 2009-02-17 11:39

Message:
PF now(?) issues a warning:

$ cat /tmp/foo.xq 
declare function foo($x, $x)
{
$x
};
foo(1,2)

$ mclient -lx /tmp/foo.xq 
#warning: variable reuse: at (1,27-1,28): $x
2

Would that be "enough", or should that be turned into an error?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2124130&group_id=56967

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to