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: $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


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