diegogub / cloop

Educational object system in Common Lisp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLOOP

This is an educational exploration of OOP, from the perspective of using functions and closures to express encapsulation, please do not use this in production!

Usage

* (let ((person1 (oop:build :name "NMunro" :age 2345 :to-string (lambda (self) (format nil "~A: ~A" (oop:get-property self :name) (oop:get-property self :age))))))
    (oop:call person1 :to-string))
"NMunro: 2345"

Installation

git clone https://github.com/nmunro/cloop.git ~/quicklisp/local-projects/cloop
sbcl --eval '(asdf:load-system :oop)'

About

Educational object system in Common Lisp


Languages

Language:Common Lisp 100.0%