Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 default parameters
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
rollerdude




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
tenniscrazy




PostPosted: 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
richcash




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: