Opened 11 years ago

Closed 10 years ago

Last modified 8 years ago

#42 closed enhancement (fixed)

Support unboxed CAFs

Reported by: benl Owned by:
Priority: normal Milestone:
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 (3)

comment:1 Changed 11 years ago by benl

  • Version set to 0.1.2

comment:2 Changed 10 years ago by erikd

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in the following set of patches:

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

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

comment:3 Changed 8 years ago by benl

  • Milestone 0.1.5 deleted

Milestone 0.1.5 deleted

Note: See TracTickets for help on using tickets.