BUILT-IN MATHEMATICA SYMBOL
is the LinkObject representing the MathLink connection for an external program currently being installed or being called.
- $CurrentLink is temporarily set by Install and by .
- You can use $CurrentLink to distinguish between several instances of an external program running at the same time.
- $CurrentLink can be included in :Pattern: and MathLink template specifications, and will be evaluated at the time when Install is called.
Set the directory:
Install two instances of external MathLink-compatible programs:
Get usage information about linked-in symbols:
$CurrentLink is used keep track of different persistent variables:
Update the value of the counter:
Check the value of the two counters:
Terminate the external programs:
Reset to the original directory:
New in 3