/[svn]/cduce/trunk/runtime/serial.ml
ViewVC logotype

Diff of /cduce/trunk/runtime/serial.ml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1622 by abate, Tue Jul 10 19:08:38 2007 UTC revision 1627 by abate, Tue Jul 10 19:09:15 2007 UTC
# Line 159  Line 159 
159    let constr chunk i vs =    let constr chunk i vs =
160      Value.ocaml2cduce_constr (constr_const chunk i) vs      Value.ocaml2cduce_constr (constr_const chunk i) vs
161    
162    let dconstr chunk i v =    let taga chunk i =
163      Value.cduce2ocaml_constr (TAGA.get      TAGA.get
164                        (fun x ->                        (fun x ->
165                           let x = Array.map (fun (t,i) ->                           let x = Array.map (fun (t,i) ->
166                                                Atoms.atom t, i) x in                                                Atoms.atom t, i) x in
167                           Atoms.mk_map (Array.to_list x))                           Atoms.mk_map (Array.to_list x))
168                        chunk.taga i) v        chunk.taga i
169    
170      let dconstr chunk i v =
171        Value.cduce2ocaml_constr (taga chunk i) v
172      let dvariant chunk i v =
173        Value.cduce2ocaml_variant (taga chunk i) v
174  end  end
175    

Legend:
Removed from v.1622  
changed lines
  Added in v.1627

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.5