A big SORRY to you... the post including "Regards," should have been a PM and no post... :
I have noticed that ... when typing in my mobile phone .
Please forgive me for that.
No:The batch-dll contains the services of the application (the application is both: SampleMain.bat, and Sample.dll.bat).Adrianvdh wrote:So the "batch-dll" stores all the public functions OF 'main.bat'.
No, you are allowed to call the functions of the batch-dll from within the plugin:Adrianvdh wrote:So a plugin can replace a function within the "batch-dll"?
The replaceable functions are all located in the SampleMain.bat.
And if you use the word "replace" in the sense of "the Samplemain.bat source is changes", then again: No.
The SampleMain.bat just doesn't call them, if "replaced" by a plugin: The plugin is called instead.
The "default 2 n" are just 3 command line arguments: "default", "2", and "n".Adrianvdh wrote:In your system, what does this main exactly?:Code: Select all
call :callfunction :Pluginable2, default 2 n
The "default 2 n" because I don't know.
There is no deeper sense; it is just used to see from where they are called, but you may use any other parameters.
How do you mean this?Adrianvdh wrote:And does the 'main.bat' have to be aware of the plugin? Because it seem to only support 3 plugins "Pluginable1, Pluginable2, Pluginable3"
It should be aware of the plugins, as it calls them, if present.
You could add more plugins to this example system, but then it may be unpredictable which one will be executed for the specifiied pluginable functions.
You could also build another application, that does not "replace" function calls, but
creates an array of functions like Aacini Main1.bat (that type of organization is much more common to plugins), or
you may organize them in any way you think of.
penpen