[email protected] wrote:
pkmnfrk
2010-04-07 16:28:17 -0700 (Wed, 07 Apr 2010)
814
Added a bunch of accessor functions to get things like doc->root or
node->nextSib
Eventually, I plan to hide the guts of Doc and Node, so that external forces
can't muck around in it, possibly changing state improperly. I've added support
to do the hiding now by adding:
#define RELOADHIDETYPES
before the include. Reloadtest does this. Speaking of which, I fixed the
display of timing in reloadtest, so that it will display values other than 0!
I mean to add something else. The impetus for doing this was that I
thought about adding delay-loading to document trees, but then realized
that it would be impossible as long as the process can access children,
nextSib and prevSib without restriction.
Now, as soon as slices.bas is modified to work with RELOADHIDETYPES, we
can add node-loading logic to NextSib(), etc safely.
Fun fact I learned while doing this: fbc cannot tell the difference between two
forward-referencing pointers. Eg:
TYPE forwardRef1 as Whatever ptr
TYPE forwardRef2 as SomethingElse ptr
Declare sub foo overload (a as forwardRef1)
Declare sub foo (a as forwardRef2)
dim j as forwardRef1 = 0
foo(j)
This generates an error about ambiguous function calls!
--
Mike
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org