Clojure

GC Issue 119: require doc out of date

Details

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

Description

Reported by hlship, May 20, 2009

The following doc for the (require) form seems to be out of date:

  'require loads a lib by loading its root resource. The root resource path
  is derived from the root directory path by repeating its last component
  and appending '.clj'. For example, the lib 'x.y.z has root directory
  <classpath>/x/y/z; root resource <classpath>/x/y/z/z.clj. The root
  resource should contain code to create the lib's namespace and load any
  additional lib resources.

Unless I'm missing something big, the root resource is
<classpath>/x/y/z.clj.  I'm not sure how the root directory feeds into
things now. If I remember back about 6 months, an older version of Clojure
did it this way.

Activity

Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - Converted from http://www.assembla.com/spaces/clojure/tickets/123 Attachments: 0001-Bring-documentation-for-require-up-to-date.patch - https://www.assembla.com/spaces/clojure/documents/cX-0jCw4Cr3RbzeJe5afGb/download/cX-0jCw4Cr3RbzeJe5afGb
Hide
Assembla Importer added a comment -

oranenj said: [file:cX-0jCw4Cr3RbzeJe5afGb]: Bring 'require doc up to date and add an usage example

Show
Assembla Importer added a comment - oranenj said: [file:cX-0jCw4Cr3RbzeJe5afGb]: Bring 'require doc up to date and add an usage example
Hide
Assembla Importer added a comment -

oranenj said: Added a patch that improves the documentation

Show
Assembla Importer added a comment - oranenj said: Added a patch that improves the documentation
Hide
Assembla Importer added a comment -

chouser@n01se.net said: Please include "Refs #123" in your git commit message, so that the ticket will be updated automatically on push, like this:

(In 31825fe1991baa3fc9375556ec6f6c595c175f4e) Bring documentation for 'require up to date

This seems to me to be a bug that should be fixed in 1.0 as well. Since we don't have a process in place for that yet, for now I'll just leave this ticket open.

Show
Assembla Importer added a comment - chouser@n01se.net said: Please include "Refs #123" in your git commit message, so that the ticket will be updated automatically on push, like this: (In 31825fe1991baa3fc9375556ec6f6c595c175f4e) Bring documentation for 'require up to date This seems to me to be a bug that should be fixed in 1.0 as well. Since we don't have a process in place for that yet, for now I'll just leave this ticket open.
Hide
Assembla Importer added a comment -

chouser@n01se.net said: Created ticket #141 to track this issue against branch 1.0.

Show
Assembla Importer added a comment - chouser@n01se.net said: Created ticket #141 to track this issue against branch 1.0.
Hide
Assembla Importer added a comment -

chouser@n01se.net said: Child association with ticket #141 was added

Show
Assembla Importer added a comment - chouser@n01se.net said: Child association with ticket #141 was added

People

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

Dates

  • Created:
    Updated:
    Resolved: