unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Johan Ceuppens <roguedemon6@gmail.com>
To: guile-devel@gnu.org
Subject: examples addon and new hacker for guile
Date: Thu, 3 Oct 2013 06:17:48 +0900 (JST)	[thread overview]
Message-ID: <alpine.DEB.2.02.1310030605250.11682@moon> (raw)

Hi all,

I wonder if you would want an example in the repo with the following actor 
syntax :

;; start code
(define (make-table)
   (let ((dict (make-dictionary)))
     (define (add! key color)
       (dictionary-add! dict key color))
     (define (set! key color)
       (dictionary-set! dict key color))
     (lambda (msg)
       (cond ((eq? msg 'add!) add!)
             ((eq? msg 'set!) set!)
             (else (dict msg))))
     )) 
;; end code

Then doing things like :

;; start code
(define (make-sub-table)
 	(let ((*subtable (make-table)))

 		(define (dispatch msg)
 			(*subtable msg))

 		(lambda (msg)
 			(cond ((eq? 'msg msg)
 				(dispatch msg)))))
;; end code

Then I am going to try to contribute in the near future, I guess I need to
read up on things.

How do I get co-author status on the project's working repository ?

Best regards,
Johan



             reply	other threads:[~2013-10-02 21:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-02 21:17 Johan Ceuppens [this message]
2013-10-05 16:28 ` examples addon and new hacker for guile Mark H Weaver
2013-10-07 13:42   ` Johan Ceuppens

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=alpine.DEB.2.02.1310030605250.11682@moon \
    --to=roguedemon6@gmail.com \
    --cc=guile-devel@gnu.org \
    /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).