/src/graph/fvar.ml
http://github.com/hhughes/ocaml-frui · OCaml · 19 lines · 19 code · 0 blank · 0 comment · 0 complexity · 0da6e25297a27e19cdbcfb8e8e2ca800 MD5 · raw file
- class ['a] fvar (v:'a) =
- object (self)
- val mutable e = Froc.never
- val mutable s = snd (Froc.make_event ())
- val mutable b = Froc.return v
- initializer
- begin
- let _e,_s = Froc.make_event () in
- let _b = Froc.hold v _e in
- e <- _e;
- s <- _s;
- b <- _b
- end
- method e = e
- method s = s
- method b = b
- method get = Froc.sample b
- method set v = Froc.send s v
- end