diff options
author | Araq <rumpf_a@web.de> | 2011-07-09 01:18:33 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-07-09 01:18:33 +0200 |
commit | 2565ff8ddec9fcf43fbda2fae6f04806c1bc6e8a (patch) | |
tree | 8ab9b57efd41ac133eaf29b0a751d42cce1f66df /lib/system.nim | |
parent | 99bcc233cd8fb3bb9b6f3f0857e477dd9b33c9e8 (diff) | |
download | Nim-2565ff8ddec9fcf43fbda2fae6f04806c1bc6e8a.tar.gz |
basic message passing working
Diffstat (limited to 'lib/system.nim')
-rwxr-xr-x | lib/system.nim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index 5c7102664..6f20a9b4d 100755 --- a/lib/system.nim +++ b/lib/system.nim @@ -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.} |