Re: [isabelle] SML Code generator and records



Hi Peter,

> record 'a fifo' =
>   list1 :: "'a list"
>   list2 :: "'a list"
> 
> definition fifo_empty':: "'a fifo'" where "fifo_empty' = \<lparr>
> list1=[], list2=[] \<rparr>"

this is the infamous ML value restriction.  Perhaps it is possible to
circumvent it by

declare fifo_empty'_def [code unfold]

which inlines this definition in-place.

Hope this helps
	Florian

-- 

Home:
http://www.in.tum.de/~haftmann

PGP available:
http://home.informatik.tu-muenchen.de/haftmann/pgp/florian_haftmann_at_informatik_tu_muenchen_de

Attachment: signature.asc
Description: OpenPGP digital signature



This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.