Clojure

GC Issue 48: Per defmulti hierarchies

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

Reported by m...@kotka.de, Jan 17, 2009
Describe the feature/change.

This is an issue from the TODO list.

Currently multimethods use the global-hierarchy. However sometimes it is useful, to define
a dedicated hierarchy for a given set of multimethods. The attached patch adds a new
:hierarchy argument to defmulti which specifies the desired hierarchy. The hierarchy may be
any IRef.

The patch depends on the patch of  issue #8 .

Was this discussed on the group? If so, please provide a link to the discussion:

http://groups.google.com/group/clojure/browse_frm/thread/f8b1be403c927b03/438c21a8007
2a105?lnk=gst&q=per+defmulti+hierarchies

 issue-48.diff
3.4 KB Download
Comment 1 by richhickey, Feb 09, 2009
patch applied - svn 1262 - thanks!
Status: Fixed

People

  • Assignee:
    Unassigned
    Reporter:
    Anonymous
Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: