Project

General

Profile

Bug #1136

Feature #640: Advanced data modeling

Feature #367: Expression Language with structs.

Struct constants in evaluator have not correct type derived and cannot be member-accessed

Added by Florian Hölzl almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
High
Category:
-
Start date:
01/10/2013
Due date:
% Done:

90%

Estimated time:

Description

As part of Issue #367 testing in evaluator (standrad STL example):

1. Define struct "Pair" with "x:int" and "y:int"
2. Go to evaluator and enter "{x:5,y:6}"

Bug 1: Derived type is "TrafficColor"

3. enter "{x:5,y:6}.x" and hit return

Bug 2: ".x" is ignored, but should derive type "int" and evaluate to "5"

History

#1 Updated by Florian Hölzl almost 8 years ago

  • Parent task set to #367

#2 Updated by Florian Hölzl almost 8 years ago

Bug 2 is gone.

Type derivation still buggy.

#3 Updated by Anonymous almost 8 years ago

  • Status changed from New to Feedback
  • Assignee changed from Anonymous to Florian Hölzl
  • % Done changed from 0 to 90

problem fixed. Added util methods to print correct expressions for struct and array

#4 Updated by Anonymous almost 8 years ago

  • Status changed from Feedback to Closed

I've tested this issue and it seems to work well

Also available in: Atom PDF