Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

clos <hashtable>

0 views
Skip to first unread message

Eduardo Cavazos

unread,
Apr 28, 2011, 3:24:26 AM4/28/11
to Mosh Developer Disscus
Hello!

Would y'all consider adding '<hashtable>' support to the '(clos
bootstrap standard-classes)' library? I did so locally (pretty
straightforward change) and it appears to work fine.

Thanks!

Ed

higepon

unread,
Apr 28, 2011, 3:46:29 AM4/28/11
to mosh-develo...@googlegroups.com
Hi.

What is <hashtable> support? A support for hashtable class?
Could you show me some sample code or the diff?

Cheers.

> --
> You received this message because you are subscribed to the Google Groups "Mosh Developer Disscus" group.
> To post to this group, send email to mosh-develo...@googlegroups.com.
> To unsubscribe from this group, send email to mosh-developer-di...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mosh-developer-discuss?hl=en.
>
>

Eduardo Cavazos

unread,
Apr 28, 2011, 3:52:53 AM4/28/11
to Mosh Developer Disscus
Hi higepon!

On Apr 28, 2:46 am, higepon <hige...@gmail.com> wrote:

> What is <hashtable> support? A support for hashtable class?

Yes.

> Could you show me some sample code or the diff?

Here's the diff:

/usr/local/share/mosh/0.2.6/lib/clos/bootstrap $ diff standard-
classes.ss _standard-classes-a.ss
40d39
< <hashtable>
47,52c46,47
< (import (only (rnrs)
< define quote begin lambda let cond or eq? else error
< list if null? car pair? boolean? symbol? procedure?
< number? vector? hashtable? char? string? input-port?
< output-port?)
<
---
> (import (only (rnrs) define quote begin lambda let cond or eq? else error list if null?
> car pair? boolean? symbol? procedure? number? vector? char? string? input-port? output-port?)
175d169
< (define <hashtable> (make-primitive-class '<hashtable>))
190d183
< ((hashtable? x) <hashtable>)

higepon

unread,
Apr 29, 2011, 7:32:37 AM4/29/11
to mosh-develo...@googlegroups.com
Hi.

Seems good.

By the way, I'm not a heavy user of tiny clos.
So I'm not sure that your suggestion is the best.

What is more, the library is a little bit old.
The upstream is updated,
http://bazaar.launchpad.net/~c-sloma/r6rs-clos/r6rs-clos-dev/files/head:/slom/.

So we are sorry that we can't change and update the library easily.
You are always welcomed, if you can become maintainer of the library :D

Cheers.

Reply all
Reply to author
Forward
0 new messages