Ticket #42 (closed enhancement: fixed)

Opened 6 years ago

Last modified 5 years ago

Support unboxed CAFs

Reported by: benl Owned by:
Priority: normal Milestone: 0.1.5
Component: Core to Sea Translation Version: 0.1.2
Keywords: Cc:

Description

With this file

upi     = 3.14159#
main () = putStr $ show (boxFloat32 upi)

We currently get:

benl@humboldt:~/devel/ddc/ddc-head-work$ bin/ddc -make test/Broken-skip/TopLevelUnboxed/Main.ds 
[1 of 1] Compiling Main
./test/Broken-skip/TopLevelUnboxed/Main.ddc.c: In function ‘_ddcInitModule_Main’:
./test/Broken-skip/TopLevelUnboxed/Main.ddc.c:15: error: incompatible types in assignment
./test/Broken-skip/TopLevelUnboxed/Main.ddc.c: In function ‘Main_main’:
./test/Broken-skip/TopLevelUnboxed/Main.ddc.c:52: error: incompatible type for argument 1 of ‘_boxFloat32’

Change History

Changed 6 years ago by benl

  • version set to 0.1.2

Changed 5 years ago by erikd

  • status changed from new to closed
  • resolution set to fixed

Fixed in the following set of patches:

Thu Nov 5 06:46:26 EST 2009 Erik de Castro Lopo <erikd@…>

  • Move test/Broken-skip/T42-TopLevelUnboxed/ to test/18-Sea/ and update.

Thu Nov 5 06:45:44 EST 2009 Erik de Castro Lopo <erikd@…>

  • Fix #42 : Support unboxed CAFs.

Thu Nov 5 04:15:22 EST 2009 Erik de Castro Lopo <erikd@…>

  • Annotate Sea's XVar/XSlot/XSlotCAF with their Type.

Wed Nov 4 17:09:08 EST 2009 Ben.Lippmeier@…

  • Clean up Var ctors in Sea.Exp
Note: See TracTickets for help on using tickets.