MRL Inheritance

Kurt Stirewalt ([email protected])
Wed, 12 Apr 1995 08:28:50 -0400

I've a question relative to writing model server components and the
old MRL parser. It appears that the old MRL parser did not generate
code to deal with inheritance. Is this the case?

Since the new parser does have to deal with inheritance, I need to
know what kind of code to generate. From reading the API documentation
(_Model_Manipulation_Language_ document), it appears that when an object
P inherits from an object Q we need to say:
s->instantiate("P",Q)
as opposed to:
s->declare_object(P, "description of P");

Is this correct?

Also, I didn't see any examples of instantiations in the above document.
When using instantiate, do we still need to call create_object_symbol
on "P"? Or is it implicitly done by instantiate()?

Is there any documentation on the Model Manipulation API other than
the above document? It would be nice to have some sort of pre-condition/
post-condition information about the methods in this API.
Is there any convenient way to put stuff like this in the document as
we discover it? Thanks.

-- kurt.