public inbox for
 help / color / mirror / Atom feed
* Lisp reference to Scheme reference
@ 2000-05-01 21:07 Kalle Olavi Niemitalo
  2000-05-01 21:35 ` Keisuke Nishida
  0 siblings, 1 reply; 2+ messages in thread
From: Kalle Olavi Niemitalo @ 2000-05-01 21:07 UTC (permalink / raw)
  To: guile-emacs

My recent macro-importing changes have caused a problem.
Previously, imported macros always put the returned value through
`lispref->scm'.  Now they make Lisp references just like imported

(define-module (emacs user)
  :use-module (emacs import)
  :use-module (emacs macro))
(begin-save-excursion 1)
     => #<procedure-with-setter>

I don't think we want a Lisp reference in this case.  The easy
fix would be to make imported macros call `lispref->scm' again,
but that might be wrong for some macros.  And it gets worse:

(define lr (object-property (begin-save-excursion 1)
     => #<lisp-reference>
(import-lisp-function prin1-to-string)
((prin1-to-string lr))
     => "#<scheme_reference>"

So we have a Lisp reference pointing to a Scheme reference.
I think make_lispref should return the original Scheme object
instead of making such double references.  May I change it?

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

end of thread, other threads:[~2000-05-01 21:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-01 21:07 Lisp reference to Scheme reference Kalle Olavi Niemitalo
2000-05-01 21:35 ` Keisuke Nishida

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).