use-modules, gnc:module-load etc.
Derek Atkins
warlord at MIT.EDU
Wed Jul 29 11:32:28 EDT 2009
Hi,
Chris Dennis <cgdennis at btinternet.com> writes:
> Hello folks
>
> I've got bogged down while putting the finishing touches to the tax
> invoice report.
>
> I can't work out which other Guile modules need to be included, for
> example to give my gnc-numeric-to-double. It used to work, but after
> splitting some useful routines into a separate module, it now doesn't.
>
> Looking into the way other reports do it, I find a tangle of
> inter-dependent modules using 'use-modules' or sometimes
> gnc:module-load' etc.
>
> Is there any documentation on 'gnc:module-load'? When would I use
> that instead of 'use-modules'? What about 'load-from-path'?
use-modules is for a scheme-only module.
gnc:module-load is for a GNCModule (which usually also includes a scheme
module). These are generally the swig-wrapped APIs.
> Is there a quick way of determining what I need to use
> gnc-numeric-to-double (which is just a Swig-wrapped C routine).
You'll need to gnc:module-load the engine, or QOF.. Whichever
GNC-module contains the wrapped API.
> cheers
>
> Chris
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available
More information about the gnucash-devel
mailing list