#dominoforever | Product Ideas Portal

 

Welcome to the #dominoforever Product Ideas Forum! The place where you can submit product ideas and enhancement request. We encourage you to participate by voting on, commenting on, and creating new ideas. All new ideas will be evaluated by HCL Product Management & Engineering teams, and the next steps will be communicated. While not all submitted ideas will be executed upon, community feedback will play a key role in influencing which ideas are and when they will be implemented.

For more information and upcoming events around #dominoforever, please visit our Destination Domino Page

Add method overloading to LotusScript

We've only been asking for this since 1995 ...

In OO languages you can usually create more than one method with the same name, but different signatures, that is different sets of parameters. This is called method overloading.
 
This way you could e.g. create more constructors (one without, the other with parameters) or overload a method like add of a container:
List.append(Integer) ' appends one number
List.append(List) ' appends the whole list
  • Guest
  • Jul 19 2018
  • Needs review
  • Attach files
  • Guest commented
    2 Sep, 2018 10:34am

    Or at least support for a variable number of parameters:

    • Function Print( s… as string) can be called with Print( “Hello” ) or Print( “Hello”, “World”, name )
  • Guest commented
    19 Jul, 2018 06:38am

    Sorry, originally from Thomas Bahn