Re: Variable Arguments?

new topic     » goto parent     » topic index » view thread      » older message » newer message

CChris wrote:
> 
> The change was not trivial because it involves the ability to replay canned
> tokens after recording them. Indeed
> procedure foo(integer n=n0)
> needs late binding
>

Even something as simple as:

procedure foo(opt object n)


and if n was not supplied, n defaulting to NULL would be a huge step.

function round(sequence items, opt object n)
  if n = NULL then n = 1 end if
  ... code for round_precision ...
end function


That's not as good as function round(sequence items, integer precision=1) but,
it's a huge step above what we have now and could be maintained later once an
assignment would be possible.

How hard is something like that?

--
Jeremy Cowgar
http://jeremy.cowgar.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu