This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
RE: $return in wildcarded void functions
- From: "Stone, Joshua I" <joshua dot i dot stone at intel dot com>
- To: "Frank Ch. Eigler" <fche at redhat dot com>, "David Smith" <dsmith at redhat dot com>
- Cc: <systemtap at sources dot redhat dot com>
- Date: Wed, 7 Mar 2007 13:24:09 -0800
- Subject: RE: $return in wildcarded void functions
Frank Ch. Eigler wrote:
> dsmith wrote:
>> Would the entire statement get deleted (if $var didn't exist)?
>
> Could be in the future, as a special case of dead code elimination.
If you start with that elimination as a requirement, then there is no
explicit need for the $!var construct. At that point you could
synthesize the same behavior with ($?var ? $var : 0), and $!var is
perhaps just a convenient shorthand.
Josh