unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Nala Ginrut <nalaginrut@gmail.com>
To: Massimiliano Gubinelli <m.gubinelli@gmail.com>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: compilation pragmas?
Date: Thu, 30 May 2019 00:16:28 +0800	[thread overview]
Message-ID: <CAPjoZoeReA=gZOODACkvigRFhbyZE-CjKZOG2meCpCvOaWyCNA@mail.gmail.com> (raw)
In-Reply-To: <1B2ADD73-2026-4707-A0AF-EB6A7EA7297C@gmail.com>

Hi Massimiliano!
Could you show some code to elaborate on your idea? It's too vague to
understand by a pure text description.

Thanks!

On Wed, May 29, 2019 at 8:43 PM Massimiliano Gubinelli
<m.gubinelli@gmail.com> wrote:
>
> 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
>
>



  reply	other threads:[~2019-05-29 16:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-29  7:53 compilation pragmas? Massimiliano Gubinelli
2019-05-29 16:16 ` Nala Ginrut [this message]
2019-05-29 21:56   ` Massimiliano Gubinelli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPjoZoeReA=gZOODACkvigRFhbyZE-CjKZOG2meCpCvOaWyCNA@mail.gmail.com' \
    --to=nalaginrut@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=m.gubinelli@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).