[fpc-pascal] array of const and longword

Seth Grover sethdgrover at gmail.com
Wed Nov 2 21:36:35 CET 2011


I've got a routine that takes an "array of const" argument, then loops
through the arguments looking at args[i].vtype and and doing something
based on the VType value of each argument. Works like a charm.

However, I've noticed that while there's a vtInteger type, a vtInt64
type, and a vtQWord type, there is no vtLongWord type. This means that
any longwords that get passed in get treated as longints in my
function.

It's not a huge deal, since it's basically just a logging/debugging
routine, but is there any way around this, other than casting it as an
int64 or a qword or something on the caller side?

Thanks,

-SG


--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover



More information about the fpc-pascal mailing list