There are some examples of functions in HSL that can take any number of arguments. For example, Trace() can accept as many arguments as required.
When creating an HSL function, how can we designate that we would like similar behaviour? Pre-defining X number of arguments and then requiring the user to put “” for arguments they don’t need is a bit cumbersome…
@Gareth - I don’t believe it is possible to construct functions in HSL (or method editor) that don’t have a defined number of parameters. The native element and library functions available in HSL that support variable argument lists adhere to different rules than custom functions written by a programmer.
Your best bet might be to provide an array as a parameter, where your function can then retrieve a variable number of parameters as element values.
If that doesn’t work, let me know what type of function you are trying to write, and I may be able to provide further suggestion.
Ah, that’s what I was concerned about - that’s a shame, but thank you for the confirmation. I guess the workaround is writing a .dll that is then used in the HSL, which seems like a lot of work for little gain.
In terms of data logging, I suppose it’s just normal debugging info and documentation info really, but we want a bit more control over how it is presented. Probably would need to talk privately more about this - maybe at SLAS?