Next: , Previous: , Up: obj-exp   [Contents][Index]


10.25.6.16 end_class/[0,1]  declaration

Synopsis

:- end_class.

:- end_class +ClassName.

Arguments

ClassName

atom

Description

A class definition continues until the next end_class/[0,1] directive, the next class/1 directive, or the end of the file, whichever comes first.

It is not possible to nest one class definition within another.

All clauses that look like method definitions (that is, which have one of <-/2, <</2 or >>/2 as the principal functors of their heads) are considered to be method definitions for the class.

Caveat

The argument to end_class/1, if specified, must match the class name of the preceding class/1 directive.

See Also

class/1


Send feedback on this subject.