for
-compatible interface.The service is not effectively started until the iterate method is called. Then, each step of the iteration is a step in the service.
While, for a typing point of view, abusers are just classes with an iterator method, the point of this class is to tag services that return a ForAbuser object.
Note that using having ForAbuser
as a genuine subclass of Collection
works but is not recommended since it may cause mental health issues.
for_abuse :: ForAbuser :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
for_abuse :: ForAbuser :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).
# Encapsulation of service in a `for`-compatible interface.
#
# The service is not effectively started until the iterate method
# is called. Then, each step of the iteration is a step in the service.
#
# While, for a typing point of view, abusers are just classes with an
# iterator method, the point of this class is to tag services that return
# a ForAbuser object.
#
# Note that using having `ForAbuser` as a genuine subclass of `Collection`
# works but is not recommended since it may cause mental health issues.
interface ForAbuser[E]
# Starts and control the service
fun iterator: Iterator[E] is abstract
end
lib/for_abuse/for_abuse.nit:23,1--37,3