On Sun, Jun 7, 2009 at 2:40 PM, Ville M. Vainio<[email protected]> wrote:

> Currently, it appears that the only "api-supported" way to create
> clones is using p.clone().

This is still true, but I implemented my own workaround (if only to be
able to create fast code that sidesteps position entirely ;-).

My function looks like this:

http://pastebin.com/f7d239a39

The deal with this is that I wanted to generalize what
createThinChild4 was doing in file import code.

No worries, I didn't enable the code in the branch -- hashcache still
uses the previous method that doesn't support clones.

After this one is proven on the field, I will document them properly.
Normal users won't note them (apart from improved speed), but
developers can certainly benefit.
-- 
Ville M. Vainio
http://tinyurl.com/vainio

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to