Wed Oct 28, 2020 8:13 pm
Login Register Lost Password? Contact Us


Module parameters and interfaces

Questions and comments regarding the Online Lessons should be posted here.

Wed Nov 27, 2013 12:03 pm Change Time Zone

I came across a piece of code that looks like this:

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

Mon Dec 02, 2013 3:29 pm Change Time Zone

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
bforeman
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 1002
Joined: Wed Jun 29, 2011 7:13 pm

Tue Dec 03, 2013 11:21 am Change Time Zone

Thanks Bob!

Hope you had a good time off work :)
Gayathri_Jayaraman
 
Posts: 75
Joined: Wed May 08, 2013 5:03 am


Return to Online Classroom

Who is online

Users browsing this forum: No registered users and 1 guest