LispCookbook / LispCookbook/cl-cookbook

CLOS, MOP and functions: Add example on how to make a class funcallable

Open
#377 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

suggestion
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.