LispCookbook / LispCookbook/cl-cookbook
CLOS, MOP and functions: Add example on how to make a class funcallable
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 158
- Avg merge
- 6d 3h
- Merged PRs (30d)
- 2
Description
Making a class funcallable can be very useful, for instance when implementing a `handler` type, or a `command` type.
You can find an example in the CLISP manual: https://www.gnu.org/software/clisp/impnotes/mop-slot-access.html#mop-sa-funcallable
The portable version uses `closer-mop`.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the linked CLISP manual section and review the cookbook's existing CLOS and MOP examples to find the appropriate documentation location. Add a portable example using closer-mop that demonstrates a funcallable class for a handler or command, and verify that the example is clear and runnable.
Written by the indexing model from the issue text.
Assessment
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100