This commit is contained in:
Araq 2012-06-21 18:51:19 +02:00
commit d1c84328a7
3 changed files with 15 additions and 3 deletions

View file

@ -53,3 +53,15 @@ proc `$`*(status: TStatusEnum): string =
proc makeCommitPath*(platform, hash: string): string =
return platform / "nimrod_" & hash.substr(0, 11) # 11 Chars.
type
TFlag = enum
A, B, C, D
TFlags = set[TFlag]
TObj = object
x: int
flags: TFlags
# have a proc taking TFlags as param and returning object having TFlags field
proc foo(flags: TFlags): TObj = nil