pdf:typing
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pdf:typing [2015/04/02 16:15] – [Specializing] christian | pdf:typing [2015/04/02 16:17] (current) – [specializes] christian | ||
---|---|---|---|
Line 85: | Line 85: | ||
==== subsumes ==== | ==== subsumes ==== | ||
- | PDFObject isType: aType | + | |
+ | <code smalltalk> | ||
+ | PDFObject isType: aType | ||
+ | </ | ||
and | and | ||
- | PDFObject class subsumes: aPDFObject | + | <code smalltalk> |
+ | PDFObject class subsumes: aPDFObject | ||
+ | </ | ||
First, we need to know if an object is already of a specific type. If this is true, we leave it alone, since it is already what we wanted. | First, we need to know if an object is already of a specific type. If this is true, we leave it alone, since it is already what we wanted. | ||
Line 94: | Line 99: | ||
==== specializes ==== | ==== specializes ==== | ||
- | aPDFObject asType: aType | + | <code smalltalk> |
+ | aPDFObject asType: aType | ||
+ | </ | ||
and | and | ||
- | PDFObject class specializes: | + | <code smalltalk> |
+ | PDFObject class specializes: | ||
+ | </ | ||
When an object is not a subclass of a type, it can be specialized if the objects class subsumes the type. | When an object is not a subclass of a type, it can be specialized if the objects class subsumes the type. | ||
/var/www/virtual/code4hl/html/dokuwiki/data/pages/pdf/typing.txt · Last modified: 2015/04/02 16:17 by christian