Clojure

(int \a) returns a value, (long \a) throws an exception

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: Release 1.3, Release 1.4
  • Fix Version/s: Release 1.5
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code
  • Approval:
    Ok

Description

As described in the summary, calling (long ...) on a character throws a ClassCastException. I know the semantics surrounding numbers has changed a bit, but I think it would be nice for this to be consistent.

Activity

Hide
Aaron Bedra added a comment -

Patch applies cleanly against 4004d267e124f12b65b0d7fb6522f32a75e3c4fb. Submitter is a confirmed CA signer.

Show
Aaron Bedra added a comment - Patch applies cleanly against 4004d267e124f12b65b0d7fb6522f32a75e3c4fb. Submitter is a confirmed CA signer.
Hide
Scott Lowe added a comment -

Attached a patch. 0001-CLJ-977-int-a-returns-a-value-long-a-throws-an-excep.patch 13/May/12

Show
Scott Lowe added a comment - Attached a patch. 0001-CLJ-977-int-a-returns-a-value-long-a-throws-an-excep.patch 13/May/12

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: