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] |
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
-- David Smith dsmith@redhat.com Red Hat http://www.redhat.com 256.217.0141 (direct) 256.837.0057 (fax)
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |