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 , 16 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:3 by , 16 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
comment:4 by , 16 years ago
| Owner: | changed from to |
|---|---|
| Status: | reopened → assigned |
comment:5 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
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 , 16 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
Still need to implement arrayLiteralExpression, characterLiteralExpression, and recordLiteralExpression in ModelFactory.
comment:7 by , 16 years ago
| Status: | reopened → accepted |
|---|
comment:8 by , 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 , 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?

Char type added during last meeting.