X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/aa14a4cddcb96b681d5c19a2ec8bad382f43b264..c91b90c3bfd3d3e68cc3d3ff3f431d1e73920061:/src/pset-proto.lisp diff --git a/src/pset-proto.lisp b/src/pset-proto.lisp index d4dc614..aafa306 100644 --- a/src/pset-proto.lisp +++ b/src/pset-proto.lisp @@ -42,7 +42,7 @@ (defgeneric property-type (value) (:documentation "Guess a sensible property type to use for VALUE.") (:method ((value symbol)) :symbol) - (:method ((value integer)) :integer) + (:method ((value integer)) :int) (:method ((value string)) :string) (:method ((value character)) :char) (:method (value) :other)) @@ -210,10 +210,11 @@ the value and its file location. In the latter case, mark the property as having been used. - The value returned depends on the TYPE argument provided. If you pass NIL - then you get back the entire PROPERTY object. If you pass `t', then you - get whatever was left in the property set, uninterpreted. Otherwise the - value is coerced to the right kind of thing (where possible) and returned. + The value returned depends on the TYPE argument provided. If you pass + `nil' then you get back the entire `property' object. If you pass `t', + then you get whatever was left in the property set, uninterpreted. + Otherwise the value is coerced to the right kind of thing (where possible) + and returned. If PSET is nil, then return DEFAULT." @@ -255,8 +256,8 @@ An attempt is made to guess property types from the Lisp types of the values. This isn't always successful but it's not too bad. The - alternative is manufacturing a PROPERTY-VALUE object by hand and stuffing - into the set." + alternative is manufacturing a `property-value' object by hand and + stuffing into the set." (property-set plist))