-------------
Actually my compiler allows "void foo () { }" - why not?  A function 
that does nothing could be very useful sometimes.  "foo () { }" is bad 
because implicitly it is declared as returning int, yet does not return 
anything.
-----------

Which    is why I used as an example
foo() {} 
which in K&R C means
int foo() {}


not 
void foo() {}

in XQuery 

declare function foo() {}

is bad for precisely the same reason as functions *always* have a return type.
(no void).  But what should it be ?


-----------------------------------------------------------------------------
David Lee
Lead Engineer
MarkLogic Corporation
[email protected]
Phone: +1 812-482-5224
Cell:  +1 812-630-7622
www.marklogic.com








_______________________________________________
[email protected]
http://x-query.com/mailman/listinfo/talk

Reply via email to