[chuck-users] function call syntax(bug?).

Kassen signal.automatique at gmail.com
Tue Nov 28 15:26:51 EST 2006


Hi, list!

Let's asume we have this function;

//----
fun void greeting()
{
<<<"hey, ChucKer!">>>;
}
//-----
clearly we would call it like this;

greeting();

and all would be well. However, if we asume we would be a fairly chaotic
sort of person who would make a large amount of typos, especially at 4 in
the morning while trusting the parser will catch them for him faster then
proofreading will (this is purely hypothetical).

In this case it could theoretically happen that one would by accident type;

greeting;

This compiles just fine and nothing is wrong except for ChucK not running
the function.

The question now is; should ChucK complain about such function calls? Is
there some unforseen practical use in calling no-parameter functions without
empty brackets?

Yours,
Kas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20061128/afdc12ec/attachment.htm 


More information about the chuck-users mailing list