Computer Science Canada default parameters |
Author: | rollerdude [ Fri May 18, 2007 10:33 am ] |
Post subject: | default parameters |
stupid typing skills, i typed all last night, you'd think my typing dyslexia would have gone away anyway... i know that in ruby, you can set fuctions to have default values if no parameters are given, is it possible to do something like this for procs fcns in turing? |
Author: | tenniscrazy [ Fri May 18, 2007 11:23 am ] |
Post subject: | RE:default parameters |
the default is always zero, i dont think you can change the default, you just have to change the values when you create them |
Author: | richcash [ Sat May 19, 2007 2:08 pm ] |
Post subject: | Re: default parameters |
There is no way, from what I remember of Turing, to do this. All fcns must be called with the correct number of arguments, there are no default values. There is also no fcn overloading. |