Wiki

Ticket #21 (closed enhancement: fixed)

Opened 16 years ago

Last modified 16 years ago

Support specification of number Type from within Cobra source files

Reported by: hopscc Owned by: Chuck
Priority: medium Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

See  New 'number' type and -number:Type option last comment for discussion.

Allow specification of number Type from within a cobra source file.

There a patch which provides support for this via a new compiler directive ( %% number Type) and a test file attached to the above discussion link.

Attachments

numberDirective1.patch Download (3.9 KB) - added by hopscc 16 years ago.
new patch

Change History

Changed 16 years ago by Chuck

Can I get a new, single patch on this ticket? Also, it would update the IntRelNotes.text if you haven't already.

Changed 16 years ago by hopscc

OK willdo.

Changed 16 years ago by hopscc

  • owner set to hopscc
  • status changed from new to assigned

Changed 16 years ago by hopscc

new patch

Changed 16 years ago by hopscc

  • owner changed from hopscc to Chuck

Changed 16 years ago by Chuck

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

I changed test lines like:

    assert n.getType is Single

to:

    assert n inherits float32  # .warning. always

Because I'm thinking more about other backends like Java and Objective-C. The second statement is portable. The warning verification is a nice bonus as Cobra *should* be giving a warning given the nature of the directive.

Patch is applied. Closing ticket.

Note: See TracTickets for help on using tickets.