Skip to Content.
Sympa Menu

maude-help - [Maude-help] Is it possible to use variable of a class type in the place of a parameter of Oid sort.

maude-help AT lists.cs.illinois.edu

Subject: Maude-help mailing list

List archive

[Maude-help] Is it possible to use variable of a class type in the place of a parameter of Oid sort.


Chronological Thread 
  • From: Mihoub Mazouz <mazouz_mihoub AT hotmail.fr>
  • To: "maude-help AT cs.uiuc.edu" <maude-help AT cs.uiuc.edu>
  • Subject: [Maude-help] Is it possible to use variable of a class type in the place of a parameter of Oid sort.
  • Date: Fri, 3 Jul 2015 19:13:18 +0100
  • Importance: Normal
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/maude-help/>
  • List-id: <maude-help.cs.uiuc.edu>

Hello.
Looking to thes models :

(omod MODULE-NAME is
  class className  .
  msg messagename : className -> Msg . 
endom)
---------------------
(fmod MESSAGE is
  including STRING .
  including CONFIGURATION .

  msg Message : String Msg Oid -> Msg .

endfm)
---------------------------
(omod TEST is
 protecting  MODULE-NAME .

var acc : Account .
 
endom)
------------------------
Is it possible to use the <acc> variable as the third parameter of the <Message> message.
In general,
 Is it possible to use variable of a class type in the place of a parameter of Oid sort.
Thank you so much.



Archive powered by MHonArc 2.6.16.

Top of Page