chicken-hackers
[Top][All Lists]
Advanced

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

Re: [patch] initial support for functors in csm


From: Pietro Cerutti
Subject: Re: [patch] initial support for functors in csm
Date: Thu, 19 Oct 2023 11:56:48 +0000
User-agent: NeoMutt/20231006-4-8a0abf

On Oct 13 2023, 10:48 UTC, felix.winkelmann@bevuta.com wrote:
Hi, Pietro!

Very nice. I'm on the road right now, but will take a deeper look at
this in the next days. Thanks!

Thanks. I have attached a 3rd version of the patch to avoid emitting a
cyclic dependency error when a file includes the same module it defines.

This allows us to instantiate *and* use a functor in the same file:

    ; we import the functor and what we want to parametrize it with
    (import (func))
    (import (parm))

    ; we instantiate the functor...
    ; (this file now exports the module inst)
    (module inst = (func parm))

    ; ... and use it right away
    ; (this file now depends on the module inst)
    (include inst)
    (some-function-defined-by-the-functor)


Thanks,


--
Pietro Cerutti
I have pledged to give 10% of income to effective charities
and invite you to join me - https://givingwhatwecan.org

Attachment: csm-functor-support-3.patch
Description: Text document


reply via email to

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