The structy-defclass Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The structy-defclass Reference Manual

This is the structy-defclass Reference Manual, generated automatically by Declt version 2.3 "Robert April" on Wed Mar 14 04:37:24 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

Structy-Defclass

I just want to make a class as easily as I can with structs

     (deftclass name a b c)

expands to

     (defclass name nil
       ((a :initarg :a :reader name-a :type t)
        (b :initarg :b :reader name-b :type t)
        (c :initarg :c :reader name-c :type t)))

     (defun make-name (&key (a () #:a2071) (b () #:b2072) (c () #:c2073))
       (make-instance 'name :a
                      (if #:a2071
                          a
                          nil)
                      :b
                      (if #:b2072
                          b
                          nil)
                      :c
                      (if #:c2073
                          c
                          nil)))

     (defun name-p (x) (typep x 'name))

The following are also supported

	 (deftclass (thing (:include x)
					   (:conc some-)
					   (:constructor gimme-thing))
	   a
	   (b 0)
	   (c 0 :type fixnum))

This also means it's easier to refactor into structs once you have done with experimenting.


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 structy-defclass

Author

Chris Bagley <chris.bagley@gmail.com>

License

BSD 2 Clause

Description

Provides deftclass, a struct-like way of defining classes

Source

structy-defclass.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 structy-defclass.asd

Location

structy-defclass.asd

Systems

structy-defclass (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 structy-defclass/package.lisp

Parent

structy-defclass (system)

Location

package.lisp

Packages

structy-defclass


Previous: , Up: Lisp files   [Contents][Index]

3.1.3 structy-defclass/structy-defclass.lisp

Dependency

package.lisp (file)

Parent

structy-defclass (system)

Location

structy-defclass.lisp

Exported Definitions

deftclass (macro)


Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 structy-defclass

Source

package.lisp (file)

Use List

common-lisp

Exported Definitions

deftclass (macro)


Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Macros

Macro: deftclass NAME &body SLOTS
Package

structy-defclass

Source

structy-defclass.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   L   S  
Index Entry  Section

F
File, Lisp, structy-defclass.asd: The structy-defclass<dot>asd file
File, Lisp, structy-defclass/package.lisp: The structy-defclass/package<dot>lisp file
File, Lisp, structy-defclass/structy-defclass.lisp: The structy-defclass/structy-defclass<dot>lisp file

L
Lisp File, structy-defclass.asd: The structy-defclass<dot>asd file
Lisp File, structy-defclass/package.lisp: The structy-defclass/package<dot>lisp file
Lisp File, structy-defclass/structy-defclass.lisp: The structy-defclass/structy-defclass<dot>lisp file

S
structy-defclass.asd: The structy-defclass<dot>asd file
structy-defclass/package.lisp: The structy-defclass/package<dot>lisp file
structy-defclass/structy-defclass.lisp: The structy-defclass/structy-defclass<dot>lisp file

Jump to:   F   L   S  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   D   M  
Index Entry  Section

D
deftclass: Exported macros

M
Macro, deftclass: Exported macros

Jump to:   D   M  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables


Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   P   S  
Index Entry  Section

P
Package, structy-defclass: The structy-defclass package

S
structy-defclass: The structy-defclass system
structy-defclass: The structy-defclass package
System, structy-defclass: The structy-defclass system

Jump to:   P   S