[Aldor-l] Semicolon after single statement in if?
Bill Page
bill.page at newsynthesis.org
Wed May 6 16:11:59 EDT 2009
Pippijn,
I think what you wrote should not be allowed. Since ; is used to
separate statements, the second line should be a syntactical error.
Did you get a different result when you tried this?
Regards,
Bill Page.
2009/5/6 Pippijn van Steenhoven <pip88nl at gmail.com>:
> Hi,
>
> can anyone tell me whether a semicolon is allowed in:
>
> if (foo) then bar; <- here
> else baz;
>
> As far as I can tell from the grammar, it is not allowed, but maybe I'm
> missing something, again. Can anyone help me out here?
>
> Regards,
>
> --
> Pippijn van Steenhoven
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkoBvDIACgkQJc+zqGNdDgqHLgCgtTI+poEpF3ZN8HnXBQxClb/B
> zcQAn1NDAxMpwitRaMjbk9SKCGKLBH4Y
> =HnLU
> -----END PGP SIGNATURE-----
More information about the Aldor-l
mailing list