[chuck-users] comma is and? undocumented feature

Kassen signal.automatique at gmail.com
Sat Jun 28 10:57:54 EDT 2008


Dear list,

Consider the following;
===============
if( 1 , 0)
    {
    <<<"false?">>>;
    }

if( 1 , 1)
    {
    <<<"true?">>>;
    }
=============

I think this isn't according to the language specs but it runs just fine. It
seems that the comma equates to "&&"? it's not problematic in the slightest
but it's not according to the specs either, I think, and a bit confusing.

What's up here?

Yours,
Kas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20080628/e371fd66/attachment.html>


More information about the chuck-users mailing list