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


dsmith wrote:

> > [...]
> >    if ($?var) { use($!var) } // works even if $var would fail to translate
> 
> Ah, the idea makes sense now.  But, how would the above translate?

$?var - to a literal constant
$!var - to literal 0 if $?var was 0, or else to whatever $var would have

> Would the entire statement get deleted (if $var didn't exist)?

Could be in the future, as a special case of dead code elimination.

- FChE


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