Skip to content
Snippets Groups Projects
  • Erwan Jahier's avatar
    ea7cd07d
    Automatically declare as «used» in an model instance, the packages · ea7cd07d
    Erwan Jahier authored
    that are used to instantiate the model.
    
    Indeed, the current parser forbids  the use of "uses" statements in a
    model instanciation. I  could have changed the syntax,  but I was not
    able to  find a satisfying  way to do  it. For instance, in  order to
    declare that package Toto uses packege Util, should we write
    
    	package Toto uses Util; = M(int, int, Util::foo);
    ?
    
    The  semicolon is  really ugly.  And it  is so  easy to  realise that
    package Util should be used...
    ea7cd07d
    History
    Automatically declare as «used» in an model instance, the packages
    Erwan Jahier authored
    that are used to instantiate the model.
    
    Indeed, the current parser forbids  the use of "uses" statements in a
    model instanciation. I  could have changed the syntax,  but I was not
    able to  find a satisfying  way to do  it. For instance, in  order to
    declare that package Toto uses packege Util, should we write
    
    	package Toto uses Util; = M(int, int, Util::foo);
    ?
    
    The  semicolon is  really ugly.  And it  is so  easy to  realise that
    package Util should be used...