''non-scalar options''

From MLDonkey

(Redirected from Non-scalar option)
Jump to: navigation, search

non-scalar options contain more than one value.

Examples of scalar option types : integers, floats, booleans, strings,...

Examples of non-scalar option types : lists, arrays, records,...

Because of current limitation of MLdonkey internal commands parser, only scalar options, and few non-scalar options that have been equipped with wrapper functions to convert them to/from string format, can be set using commands.


Note: string wrapping functions are usually adhoc (typically, spaces are used to separate values, only because spaces aren't allowed in them), so it's not very satisfactory.

Other solutions are

  • generic commands to manipulate non-scalar options (additem/delitem for lists,...)
  • use the same parsers and generators used for .ini files handling in the command line parser

Maybe some day...

Personal tools