Right, your options are either to nest a withnode inside the readnode,
or to just not use readnode at all (if you don't care about throwing
warnings about unhandled children. I think I put too much emphasis on
catching unhandled children).
By the way, the .default(0) is redundant here because the
After I fiddled with it a little more, I now feel a whole lot happier
with it. It took me a little while to wrap my head around it again, but
I really do love reloadbasic. It saves a ton of work.
---
James
On Fri, Dec 14, 2012 at 04:18:48PM +1300, Ralph Versteegen wrote:
Right, your options
Hey, TMC, I have a ReloadBasic question. I want to do something like
this:
SUB load_hero_from_reload(hero as HeroDef ptr, byval parent as NodePtr)
READNODE parent, default
hero-name = parent.name.string
hero-max_name_len = parent.name.maxlen.default(0).integer
This isn't allowed because
On Wed, Dec 12, 2012 at 10:39:14AM -0800, James Paige wrote:
Hey, TMC, I have a ReloadBasic question. I want to do something like
this:
SUB load_hero_from_reload(hero as HeroDef ptr, byval parent as NodePtr)
READNODE parent, default
hero-name = parent.name.string
hero-max_name_len =