Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-11

array of const and longword

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Seth Grover

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

Reply by email