view tests/openRedef.ur @ 2203:39faa4a037f4

ML half of initial prototype. (Doesn't compile because there's no C yet.)
author Ziv Scully <ziv@mit.edu>
date Tue, 25 Mar 2014 02:04:06 -0400
parents cccf8bf64b30
children
line wrap: on
line source
structure M = struct
    con num = int
    val zero = 0
end

structure N = struct
    open M
    con num = num * num
    val zero = zero + 1
end

structure O = struct
    open N

    val one : num = (zero + 1, zero)
end