Bugs item #2124130, was opened at 2008-09-23 09:57
Message generated for change (Comment added) made by stmane
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: Open
Resolution: None
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: 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
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs