unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* compilation pragmas?
@ 2019-05-29  7:53 Massimiliano Gubinelli
  2019-05-29 16:16 ` Nala Ginrut
  0 siblings, 1 reply; 3+ messages in thread
From: Massimiliano Gubinelli @ 2019-05-29  7:53 UTC (permalink / raw)
  To: guile-devel

Hello,
 I noticed that the Tree IL compiler uses an ad-hoc code to check if some symbol is dynamically defined by GOOPS, intercepting calls to the toplevel-define! function which introduces just a new definition in the current module. In TeXmacs we need some similar dynamics definition mechanism and I get a lot of compiler warnings since the Tree IL analyser does not recognise my definitions. Of course I have the option to redefine  toplevel-define! like GOOPS does, but I’m worried of possible name clashes. Another possibility would be to introduce some “compiler pragma” support in the Tree IL compiler so that it can have annotations which can then be ignored when producing more lower lever code. In this way one could make the mechanism of suppressing particular warnings (e.g. possibly undefined symbols) independent of hacks specific only to certain libraries and provide more orthogonal features. Does it sounds reasonable? I could try to hack it down but I would like to discuss first possible design issues, I’m new to guile compiler.

Best regards,
Massimiliano Gubinelli




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

end of thread, other threads:[~2019-05-29 21:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-29  7:53 compilation pragmas? Massimiliano Gubinelli
2019-05-29 16:16 ` Nala Ginrut
2019-05-29 21:56   ` Massimiliano Gubinelli

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