I'm writing a small program which utilizes PascalScript. All objects provided to scripts are Interface instances with reference counting. I am making available to scripts, the basic functionality most would need to use in the script such as HTTPClient, JSON, StringBuilder, etc.

I would like to provide an XML implementation for scripts in this application and I am unsure how to go about leveraging FPC's existing XML DOM framework as Interfaces since it does not implement interfaces.

The only thing I can think of is to wrap existing FPC DOM objects in other objects that implement the appropriate interfaces. Not sure how viable that would be and I am concerned with the overhead of basically duplicating pertinent objects in FPC DOM to represent the interface.

Any suggestions?

Thanks,

--
Warm Regards,

Lee



_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to