Opened 15 years ago

Last modified 15 years ago

#1181 closed defect (fixed)

Lookup fail when extending Philosopher.DiningTable class but not when instantiating it.

Reported by: Peter Aronsson Owned by: Peter Aronsson
Priority: critical Milestone:
Component: Version:
Keywords: Cc: Peter Aronsson, Martin Sjölund

Description

When extending the class, i.e.

'model Philosopher_DiningTable

extends Philosopher.DiningTable;

end Philosopher_DiningTable;'
I get the error:
Error: Variable timeToChangeState not found in scope Philosopher.Philosopher
[Philosopher.mo:13:5-13:46:readonly] Error: Variable phil: In modifier (sigma = sigma), class or component sigma not found in <Philosopher>

However, when creating a component it works fine:
'model Philosopher_DiningTable

Philosopher.DiningTable t;

end Philosopher_DiningTable;'

Attachments (1)

Philosopher.mo (34.2 KB ) - added by Peter Aronsson 15 years ago.

Download all attachments as: .zip

Change History (3)

by Peter Aronsson, 15 years ago

Attachment: Philosopher.mo added

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

This problem is fixed in my local copy (which can't be committed because it has other issues).

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

Fixed in trunk

Note: See TracTickets for help on using tickets.