$return in wildcarded void functions

David Smith dsmith@redhat.com
Wed Mar 7 18:19:00 GMT 2007


Frank Ch. Eigler wrote:
> On Wed, Mar 07, 2007 at 11:05:12AM -0600, David Smith wrote:
>> Hmm, I'm missing something.  Why do we need $?var *and* $!var?  It seems 
>> like $?var would suffice.
> 
> The reason why it doesn't becomes clear with an example, and with the
> realization that $var would still trigger a *translate-time* error if
> it did not exist in context.
> 
>    if ($?var) { use($!var) } // works even if $var would fail to translate

Ah, the idea makes sense now.  But, how would the above translate? 
Would the entire statement get deleted (if $var didn't exist)?

-- 
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)



More information about the Systemtap mailing list