Skip to content

Commit

Permalink
Merge pull request #7 from cdrubin/patch-2
Browse files Browse the repository at this point in the history
Update 002-covers-vs-classes.md
  • Loading branch information
nddrylliog committed Mar 31, 2013
2 parents 1a454e1 + edc4d05 commit 633c10d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 002-covers-vs-classes.md
Expand Up @@ -46,16 +46,16 @@ Since 'n' refers to 'answer', the code will modify its member 'value' and set it

### Covers ###

Covers are trickier. There are two types of covers: primitive covers, and compound covers
Covers are trickier. There are two types of covers: primitive covers and compound covers

Primitive covers allow to add methods to an existing type. For implementations
of ooc on top of C, it means you can do stuff like:
Primitive covers allow to us to add methods to an existing underlying type. For implementations
of ooc on top of C this means you can do stuff like:

~~~
Int: cover from int
~~~

And it's actually the way all C types are used from ooc.
This is actually the way all C types are used within ooc.

As a consequence, covers are by-value. Which means that

Expand Down

0 comments on commit 633c10d

Please sign in to comment.