guile-devel
[Top][All Lists]
Advanced

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

GOOPS and hash-tables - ie. <hash-table>


From: Brent Pinkney
Subject: GOOPS and hash-tables - ie. <hash-table>
Date: Sat, 23 Mar 2013 13:18:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4

Hi,

I desperately need to write a generic method that binds to a hash-table.

I have noticed that native scheme types like pair, list, and vector are automagically recognised in GOOPS as <pair>, <list>, and <vector>.
Even SRFI-19 dates are recognised as <date>.


How then to add similar goodness so that I can write:

(define-method (enumerate! (o <hash-table>) env)
    ...
)


Thanks

Brent



reply via email to

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