Module parameters and interfaces
I came across a piece of code that looks like this:
Here, the portion in the RHS - after MODULE, is the parameter - the interface. What is the list of values passed to the LHS? More parameters, that aren't part of an interface?
Regards,
Gayathri
- Code: Select all
EXPORT myModule(string name='',Boolean IsActive = true):= MODULE(params1)
<processing code>
END;
Here, the portion in the RHS - after MODULE, is the parameter - the interface. What is the list of values passed to the LHS? More parameters, that aren't part of an interface?
Regards,
Gayathri
- Gayathri_Jayaraman
- Posts: 75
- Joined: Wed May 08, 2013 5:03 am
Hi Gayathri,
First, our apologies for not getting back to you sooner, we just came back from a long holiday weekend over here
Yes, to answer your question the MODULE is establishing a concrete instance of the INTERFACE (params1) and the parameters on the LHS can be used for anything inside the exported MyModule. So myModule can be used to change the initial settings in the INTERFACE if needed and also do any additional processing needed as established by the parameters.
Regards,
Bob
First, our apologies for not getting back to you sooner, we just came back from a long holiday weekend over here

Yes, to answer your question the MODULE is establishing a concrete instance of the INTERFACE (params1) and the parameters on the LHS can be used for anything inside the exported MyModule. So myModule can be used to change the initial settings in the INTERFACE if needed and also do any additional processing needed as established by the parameters.
Regards,
Bob
- bforeman
- Community Advisory Board Member
- Posts: 1006
- Joined: Wed Jun 29, 2011 7:13 pm
Thanks Bob!
Hope you had a good time off work
Hope you had a good time off work

- Gayathri_Jayaraman
- Posts: 75
- Joined: Wed May 08, 2013 5:03 am
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest