|
$define pf1 $pets AND $food
$define pets "dog" OR "cat"
$define food "fish" OR "pie"
$define pf2 ($pets) AND ($food)
:v1, $pf1 AND "ate" #
:v2, "ate" AND $pf2 #
Note that pf1 resolves to: "dog" OR "cat" AND "fish" OR "pie"
which is the same as:
"dog" OR ("cat" AND "fish") OR "pie"
but pf2 resolves to: ("dog" OR "cat") AND ("fish" OR "pie")
As with C/C++ #define macros, parentheses may be used in the VDL macro definition or invocation to ensure that the intended result is obtained.
Listen to the audio
Contents | Previous | Next
|