Skip to content

Commit

Permalink
remove delegates (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
Theodus authored and jemc committed Jan 26, 2017
1 parent 223ed1b commit c25cb5d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 164 deletions.
22 changes: 0 additions & 22 deletions appendices/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,28 +202,6 @@ class Test
"""
```

## How to Delegate objects

```pony
trait TAnimal
fun talk(): String
class Cat is TAnimal
fun talk(): String =>
"Meow"
class CatToy is TAnimal
let _cat: Cat delegate TAnimal = Cat
let animals: Array[TAnimal] = Array[TAnimal]
animals.push(Cat.create())
animals.push(CatToy.create())
for animal in animals.values() do
env.out.print(animal.talk())
end
```

## How to create Arrays with values
```pony
let dice: Array[U32] = [1, 2, 3, 4, 5, 6]
Expand Down
142 changes: 0 additions & 142 deletions docs/types/delegates.md

This file was deleted.

0 comments on commit c25cb5d

Please sign in to comment.