default parameters
Author |
Message |
rollerdude
![](http://compsci.ca/v3/uploads/user_avatars/2012907293465dc2862c598.jpg)
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
tenniscrazy
![](http://compsci.ca/v3/uploads/user_avatars/16168420744a9c16d226a1c.jpg)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
richcash
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
|
|