$return in wildcarded void functions

Frank Ch. Eigler fche@redhat.com
Wed Mar 7 19:15:00 GMT 2007


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



More information about the Systemtap mailing list