mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-18 13:49:59 +01:00
Merge pull request #37 from zeckalpha/feature/docs-todos
Feature/docs todos
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
^title Classes
|
||||
|
||||
**TODO: Refactor `method-calls` and `classes` into using and creating classes.**
|
||||
|
||||
Every value in Wren is an object, and every object is an instance of a class.
|
||||
Even `true` and `false` are full-featured objects—instances of the `Bool` class.
|
||||
|
||||
@ -55,6 +57,8 @@ When you [call](method-calls.html) the `prance` method, it selects the right one
|
||||
|
||||
**TODO: Defining operators and setters.**
|
||||
|
||||
**TODO: `static` methods.**
|
||||
|
||||
## Constructors
|
||||
|
||||
To create a new instance of a class, you use the `new` keyword. We can make a unicorn like so:
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
^title Method Calls
|
||||
|
||||
**TODO: Refactor `method-calls` and `classes` into using and creating classes.**
|
||||
|
||||
Wren is object-oriented, so most code consists of method calls. Most of them
|
||||
look like so:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user