Mercurial > repos > rhope
diff backendutils_c.rhope @ 139:a68e6828d896
Global stores and transactions are working. Definately leaks memory on retries. Probably a fair number of bugs to work out. However, a basic test program works.
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 19 Nov 2010 04:04:14 -0500 |
parents | fc3815b7462f |
children | fd06fb07762a |
line wrap: on
line diff
--- a/backendutils_c.rhope Tue Nov 16 21:53:18 2010 -0500 +++ b/backendutils_c.rhope Fri Nov 19 04:04:14 2010 -0500 @@ -164,6 +164,27 @@ out <- op } +Blueprint Global Get +{ + Store + Var +} + +Global Get[store,var:out] +{ + out <- [[Build[Global Get()]]Store <<[store]]Var <<[var] +} + +Make Op@Global Get[get,func:out] +{ + out <- [func]Global Reference[[get]Store >>, [get]Var >>] +} + +Strip Addref@Global Get[get:out] +{ + out <- get +} + Blueprint Check Result { Output Num