1. Eu 4 - default parameters in functions and parameters
- Posted by ChrisB (moderator) Jan 21, 2010
- 968 views
Hi
what is the correct form for the parameters in a function / procedure that aren't required, and where is this listed in the manual
eg
function blah(integer x, sequence y default "hmmmm")
Thanks,
Chris
2. Re: Eu 4 - default parameters in functions and parameters
- Posted by mattlewis (admin) Jan 21, 2010
- 993 views
ChrisB said...
Hi
what is the correct form for the parameters in a function / procedure that aren't required, and where is this listed in the manual
Take a look at 4.2.1.1 procedures. Basically, you use an equals sign:
procedure foo( atom bar = 0 )
Matt
3. Re: Eu 4 - default parameters in functions and parameters
- Posted by ChrisB (moderator) Jan 21, 2010
- 951 views
That's it!
Thanks