Ticket #151 (closed defect: fixed)
PANIC in Source.DefixApps ($ do)
| Reported by: | erikd | Owned by: | erikd |
|---|---|---|---|
| Priority: | blocker | Milestone: | 0.1.3 |
| Component: | Source Desugarer | Version: | 0.1.2 |
| Keywords: | Cc: |
Description
Translated Ocaml version of Jensens device:
to Disciple as:
-- A mutable Int. i :: Int %r0 :- Mutable %r0 i = 42 -- initial value doesn't matter sum' i lo hi term = do result = 0.0 i := lo while (i <= hi) $ do result := result + term () i := i + 1 result main () = println $ show $ sum' i 1 100 (\ () -> 1.0 / toFloat i)
and got:
ddc: PANIC in Source.DefixApps
makeXDefixApps: parse error at
./jensens.ds:13:9 xx = []
Change History
Note: See
TracTickets for help on using
tickets.
