- May
- 3,515
- 5
Existing TCC syntax (actually, even 4DOS syntax) allows the user to specify
the names of environment or internal variables, GOTO and GOSUB labels,
internal and external commands to be used indirectly by the value of a
variable, e.g., %[%xyz] or GOTO x_%xyz. Many times it would be useful to
specify the name of a variable function in an analogous manner (equivalent
to "function pointer" in the C language):
for %f in ( CRC32 MD5 ) echo %f=%@%f[s,%xyz]
If I am mistaken, and such syntax already exists, I'd be very happy to learn
what it is!
--
Steve
the names of environment or internal variables, GOTO and GOSUB labels,
internal and external commands to be used indirectly by the value of a
variable, e.g., %[%xyz] or GOTO x_%xyz. Many times it would be useful to
specify the name of a variable function in an analogous manner (equivalent
to "function pointer" in the C language):
for %f in ( CRC32 MD5 ) echo %f=%@%f[s,%xyz]
If I am mistaken, and such syntax already exists, I'd be very happy to learn
what it is!
--
Steve