Bugs item #2051271, was opened at 2008-08-14 13:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2051271&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: Core
Group: MonetDB5 CVS Head
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Fabian (mr-meltdown)
Assigned to: Martin Kersten (mlkersten)
Summary: M5: true, false and nil unavailable in a function
Initial Comment:
# observed 14-08-2008: true, false and nil are not available in a
# function, whereas they are locally
function user.myfunc(i:int):bit;
barrier ifpart := i == 1;
return(true);
exit ifpart;
barrier ifpart := i == 2;
return(false);
exit ifpart;
barrier ifpart := i == 3;
return(nil:bit);
exit ifpart;
end user.myfunc;
#!TypeException:user.myfunc[2]:'true' may not be used before being initialized
io.print(true);
p := user.myfunc(1);
io.print(p);
io.print(false);
p := user.myfunc(2);
io.print(p);
io.print(nil:bit);
p := user.myfunc(3);
io.print(p);
# no idea what this does
p := user.myfunc(4);
io.print(p);
Added as tests/BugReports/Tests/notruefalsenil
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2051271&group_id=56967
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs