This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]