guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proposal: Inclusion of `examples' directory in the distribution


From: Martin Grabmueller
Subject: Re: Proposal: Inclusion of `examples' directory in the distribution
Date: Wed, 30 May 2001 10:51:35 +0200 (MET DST)

> From: Thomas Wawrzinek <address@hidden>
> Date: Wed, 30 May 2001 09:58:14 +0200 (MEST)
> 
> Great! Very concise examples. The box.c example showed me the road
> to take from the (very old) data-rep.info distributed with guile 1.4
> (I haven't read a newer version, because I#m in lazy mode :-).
> 
> I'd like to see an example of building a module in C (with
> scm_register_module_xxx), maybe the box example could be "extended"
> to cover this as well.

The box example is meant to be simple, so I don't think I want to
extend it further.  Instead, I plan to add more example
subdirectories, with one being called `module-box' which implements
the box data type again, this time placing the definitions in a new
module (examples module-box).

(BTW: scm_register_module_xxx is deprecated and is replaced by newer
primitives.  I'll make an example for that too.)

> How about a module example, where one module imports another one and
> re-exports some, but not all of its bindings, so the main program
> can't see them. Would require a proper comment. (There was a case of
> confusion on guile-user recently [maybe me?]).

Another candidate for a new example directory.  I'll see what I can
do.

Regards,
  'martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]