Opened 10 years ago

Closed 10 years ago

#3096 closed defect (fixed)

Prototype for dot operator

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone: 1.9.2
Component: Frontend Version: trunk
Keywords: Cc:

Description

Implement a dot operator prototype (disabled for +std=3.3 and below), like m:#1512 suggests (only for function calls).

function f
  input Real r;
  output Real x=1,y=2;
end f;

function y
  input Real i;
  output Real o = f(i).y;
end y;

function x
  input Real i;
  output Real o = f(i).x;
end x;

model M
  constant Real r1 = y(1.5);
  constant Real r2 = x(1.5);
end M;

Change History (2)

comment:1 by Martin Sjölund, 10 years ago

Owner: changed from somebody to Martin Sjölund
Status: newassigned

comment:2 by Martin Sjölund, 10 years ago

Resolution: fixed
Status: assignedclosed

Fixed in r24168.

Note: See TracTickets for help on using tickets.