basic message passing working

This commit is contained in:
Araq 2011-07-09 01:18:33 +02:00
commit 2565ff8dde
4 changed files with 56 additions and 17 deletions

View file

@ -236,7 +236,7 @@ type
EInvalidObjectAssignment* =
object of ESynch ## is raised if an object gets assigned to its
## farther's object.
## parent's object.
EInvalidObjectConversion* =
object of ESynch ## is raised if an object is converted to an incompatible
@ -261,7 +261,10 @@ type
## that cannot be represented with infinite
## precision -- for example, 2.0 / 3.0, log(1.1)
## NOTE: Nimrod currently does not detect these!
EDeadThread* =
object of ESynch ## is raised if it is attempted to send a message to a
## dead thread.
TResult* = enum Failure, Success
proc sizeof*[T](x: T): natural {.magic: "SizeOf", noSideEffect.}