1. Eu 4 - default parameters in functions and parameters

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

new topic     » topic index » view message » categorize

2. Re: Eu 4 - default parameters in functions and parameters

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Eu 4 - default parameters in functions and parameters

That's it!

Thanks

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu