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



PGP available:

Attachment: signature.asc
Description: OpenPGP digital signature

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