Clojure

Enable refering to ->type inside deftype

Details

  • Type: Enhancement Enhancement
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Patch:
    Code

Description

Inside a defrecord body it's possible to refer to ->type-ctor but that is not possible inside deftype.

This patch adds an implicit declare, as done in defrecord making it possible to use the ->type-ctor inside deftype methods

Activity

Hide
Timothy Baldridge added a comment -

Seems valid. Vetting.

Show
Timothy Baldridge added a comment - Seems valid. Vetting.
Timothy Baldridge made changes -
Field Original Value New Value
Approval Vetted [ 10003 ]
Rich Hickey made changes -
Approval Vetted [ 10003 ]
Issue Type Defect [ 1 ] Enhancement [ 4 ]
Alex Miller made changes -
Labels deftype
Nicola Mometto made changes -
Description Inside defrecord is possible to refer to ->type-ctor, that is not possible inside deftype.
This patch adds an implicit declare, as done in defrecord
Inside a defrecord body it's possible to refer to ->type-ctor but that is not possible inside deftype.

This patch adds an implicit declare, as done in defrecord making it possible to use the ->type-ctor inside deftype methods

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: