borrow dots for distinct types documented

This commit is contained in:
Araq 2014-03-26 08:42:27 +01:00
commit 7874c0efcb
3 changed files with 35 additions and 1 deletions

View file

@ -0,0 +1,13 @@
type
Foo = object
a, b: int
s: string
Bar {.borrow: `.`.} = distinct Foo
var bb: ref Bar
new bb
bb.a = 90
bb.s = "abc"