Re: Defining long constants - do-able but not exactly elegant

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

Kat writes:
> I thought the whole point of using append() is that Rob 
> optimised it to not make copies?

The simple, common case:

     x = append(x, something)

is highly optimized for use in a loop.
More complicated things like:

    x[i] = append(x[i], something)

are not.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu