Table of Contents

class

defclass

(defclass klas (superklas ...) (
  slot1
  (slot2 :initform 1)
  ))

slot

(slot-value self 'slot-name) ;place, lze použít setf

slot-specifier::= slot-name | (slot-name [[slot-option]])
slot-name::= symbol
slot-option::= {:reader reader-function-name}* | 
               {:writer writer-function-name}* | 
               {:accessor reader-function-name}* | 
               {:allocation allocation-type} | 
               {:initarg initarg-name}* | 
               {:initform form} | 
               {:type type-specifier} | 
               {:documentation string} 

method

defmethod

(defmethod meth1 ((self klas) ...)
  ...
  self;#return
  )

super

(call-next-method) “super”

constructor

(defmethod initialize-instance ((self class) &key) ;“konstruktor”

...)

types

YPP2/clos.txt · Last modified: 2014/10/22 00:45 (external edit)
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0