This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Global constants
joshua.i.stone wrote:
> [...] I find it unfortunate that the language is designed such that
> the semicolon is "usually-not but sometimes" needed.
It's more like "almost never" needed. According to my recollection
and testsuite/parseok/elven.stp, it's only needed for disambiguating
overloaded (unary and binary) "+" and "-" operators.
> > Perhaps probes consisting of a single statement shouldn't require
> > the outer braces either: probe kernel.function ("sys_open") if
> > ($flags & O_CREAT) printf ("foo\n")
>
> I have a negative gut reaction to this as well. [...]
You've convinced me.
- FChE