Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Latest commit

 

History

History
64 lines (36 loc) · 1.22 KB

base.rst

File metadata and controls

64 lines (36 loc) · 1.22 KB

{} Base

Base :: { init! :: @this:Object*, Any... -> this }

The root object for basing all the OOP code. Provides all of Boo's primitive combinators in an easy and extensible OOP-way.

Creating instances

Base.make()

make :: @this:Object, Any... -> Object <| this

Constructs new instances of the object the function is being applied to.

detail-link

+ <base/make>

Base.derive(sources...)

derive :: @this:Object, (Object | DataObject)... -> Object <| this

Constructs a new object that inherits from the object this function is being applied to, and extends it with the provided mixins.

detail-link

+ <base/derive>

Summary

init!  :: @this:Object*, Any... -> this
make   :: @this:Object, Any... -> Object <| this
derive :: @this:Object, Any... -> Object <| this

base/make base/derive