Guides/Language FAQ/Explicit Arguments

From J Wiki
Jump to navigation Jump to search

Why do I get spelling errors when I write x. and y.?

Starting with J6.01, the period is removed from the argument names, so write x and y instead of x. and y. .

If you have code that uses the old names, you can either tell the interpreter to accept the old names by executing

   9!:49 (1)

or change the names to the new form by loading the script

   load '~system/extras/migrate/fixargs.ijs'

and then

  fixfile <'filename'  NB. e. g. <'c:\Jprogs\scriptname.ijs'

or

   fixpath 'pathname'  NB. e. g. 'c:\Jprogs'


Contributed by Your Name