Skip to content

Commit

Permalink
defclass-star: Add make as an alias for make-instance*.
Browse files Browse the repository at this point in the history
  • Loading branch information
aartaka committed Dec 6, 2023
1 parent 2811d50 commit 929c69a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion source/defclass-star.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -782,4 +782,6 @@ the future." arguments))
(list last-appendable-form)))))

(setf (macro-function 'make*) (macro-function 'make-instance*)
(documentation 'make* 'function) (documentation 'make-instance* 'function))
(documentation 'make* 'function) (documentation 'make-instance* 'function)
(macro-function 'make) (macro-function 'make-instance*)
(documentation 'make 'function) (documentation 'make-instance* 'function))
3 changes: 2 additions & 1 deletion source/package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#:defgeneric* ; alias
#:make-instance*
#:make* ; alias
#:make ; alias
;; transformers
#:default-accessor-name-transformer
#:dwim-accessor-name-transformer
Expand All @@ -30,7 +31,7 @@
- `nclasses:define-class' (aliases `nclasses:define-class*' and `nclasses:defclass*')
- `nclasses:define-condition*' (alias `nclasses:defcondition*').
- `nclasses:define-generic' (aliases `nclasses:define-generic*' and `nclasses:defgeneric*').
- `nclasses:make-instance*' (alias `nclasses:make*').
- `nclasses:make-instance*' (alias `nclasses:make*' and `nclasses:make').
Compared to the standard macros, they accept extra options and slot definition
is smarter.
Expand Down

0 comments on commit 929c69a

Please sign in to comment.