unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* scm_c_define_gsubr() and modules in Guile 1.6
@ 2003-04-26 19:11 stefan
  2003-04-28 16:12 ` Rob Browning
  0 siblings, 1 reply; 3+ messages in thread
From: stefan @ 2003-04-26 19:11 UTC (permalink / raw)


Hello!

A short question about symbols created by scm_c_define_gsubr() or
scm_c_define():  Why can't these symbols not be used within modules like
this:

(define-module (test-suite))
...
(export test-suite)

It worked in Guile 1.4 versions, but is broken/improved? in the Guile 1.6
version.

Thanks in advance,
	stefan@lkcc.org



_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: scm_c_define_gsubr() and modules in Guile 1.6
  2003-04-26 19:11 scm_c_define_gsubr() and modules in Guile 1.6 stefan
@ 2003-04-28 16:12 ` Rob Browning
  2003-04-28 17:09   ` stefan
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Browning @ 2003-04-28 16:12 UTC (permalink / raw)
  Cc: guile-user

stefan <stefan@lkcc.org> writes:

> A short question about symbols created by scm_c_define_gsubr() or
> scm_c_define(): Why can't these symbols not be used within modules
> like this:

I'm not sure I follow your question.  Could you rephrase?

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: scm_c_define_gsubr() and modules in Guile 1.6
  2003-04-28 16:12 ` Rob Browning
@ 2003-04-28 17:09   ` stefan
  0 siblings, 0 replies; 3+ messages in thread
From: stefan @ 2003-04-28 17:09 UTC (permalink / raw)
  Cc: guile-user

On Mon, 28 Apr 2003, Rob Browning wrote:

> stefan <stefan@lkcc.org> writes:
>
> > A short question about symbols created by scm_c_define_gsubr() or
> > scm_c_define(): Why can't these symbols not be used within modules
> > like this:
>
> I'm not sure I follow your question.  Could you rephrase?

Sorry for my bad english, please... next try:

I do have a .c file containing e.g.

	scm_c_define("my_symbol", ...)

then I can use 'my_symbol' in normal .scm files.  So far, so good.

But when do create a .scm file which contains this:

	(define-module (test-suite))
	...
		(my-symbol ...)
	...
	(export test-suite)

And then I have a nother .scm file which contains:

	(use-modules (test-suite))
	...
	(test-suite)

(This imports the above module file, which wants to evaluate the symbol
'my_symbol')

This does not work in Guile 1.6 and above, it worked in Guile 1.4 version.
Why is the symbol 'my_symbol' not visible in the module?  How can I
achieve it without recoding the .c file?

Thanks in advacne,
	stefan@lkcc.org



_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-28 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-26 19:11 scm_c_define_gsubr() and modules in Guile 1.6 stefan
2003-04-28 16:12 ` Rob Browning
2003-04-28 17:09   ` stefan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).