Opened 16 years ago

Closed 16 years ago

#173 closed enhancement (fixed)

Add char type to model and value layer

Reported by: ywei Owned by: zirkel
Priority: major Milestone:
Component: multiple Version: 1.0
Keywords: Cc:

Description

Add the character type class to the model module and the layer module. Character addition/subtraction operations are not allowed.

Change History (10)

comment:1 by ywei, 16 years ago

Owner: set to Stephen Siegel
Status: newassigned

comment:2 by ywei, 16 years ago

Resolution: fixed
Status: assignedclosed

Char type added during last meeting.

comment:3 by ywei, 16 years ago

Resolution: fixed
Status: closedreopened

comment:4 by Stephen Siegel, 16 years ago

Owner: changed from Stephen Siegel to zirkel
Status: reopenedassigned

comment:5 by zirkel, 16 years ago

Resolution: fixed
Status: assignedclosed

Character type is represented at the model and value layer. At the symbolic layer, a character is represented as an integer. The value layer does this conversion.

comment:6 by Stephen Siegel, 16 years ago

Resolution: fixed
Status: closedreopened

Still need to implement arrayLiteralExpression, characterLiteralExpression, and recordLiteralExpression in ModelFactory.

comment:7 by zirkel, 16 years ago

Status: reopenedaccepted

comment:8 by zirkel, 16 years ago

arrayLiteralExpression and characterLiteralExpression are implemented. In order to create a literal expression from a record, I need the type of the record. However, recordLiteralExpression only takes an array of the components as an argument. This is not enough information to construct a record type, as that also requires the name, fieldNames, and dimensionExpressions. Is it ok to change recordLiteralExpression to take these arguments?

comment:9 by Stephen Siegel, 16 years ago

How about make the record type an argument to the method, i.e., change

	LiteralExpressionIF recordLiteralExpression(LiteralExpressionIF[] components);

to

	LiteralExpressionIF recordLiteralExpression(RecordTypeIF type, LiteralExpressionIF[] components);

We need to know from the user of this module (front end, i.e., Yi) if this will work for him---will you be able to figure out the record type of the record literal?

comment:10 by zirkel, 16 years ago

Resolution: fixed
Status: acceptedclosed

Implemented.

Note: See TracTickets for help on using tickets.