5 Feb
2001
5 Feb
'01
12:33 p.m.
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
9320
Age (days ago)
9321
Last active (days ago)
4 comments
4 participants
participants (4)
-
Eike Lange -
Frank Heckenbach -
Russ Whitaker -
Steve Loft