I want to use an element of a multi-dimensional array as a parameter to
a macro, e.g.:
------------------------------------------------
program test(output);
{$define THING(a,b) writeln(a*b)}
var
num : array [0..1,0..1] of integer = ((1,2), (3,4));
begin
THING(num[1,1], 6)
end.
------------------------------------------------
But this gives me an error:
test.pas:8: macro `THING' used with too many (3) args
Presumably it's taking the first comma as an argument delimiter.
Can I get around this?
--
Steve