[fpc-pascal] How to call C++ function with Vector

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Tue Sep 26 15:21:21 CEST 2017


On 26/09/17 11:00, leledumbo via fpc-pascal wrote:
>> I am stuck at the keyword vector. >> How is it translated into free pascal?
> It's hard, you must create additional wrapper that exposes simpler type(pointer or array of pchar) OR make wrapper for the vector methods andsimply declare it as an opaque pointer. std::vector is template/generic C++class that implements a dynamic array functionality, but it can't be usedoutside C++.

Would it be possible to do this via a Lua shim?

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list