|
|
In article <cjameshuff-EE45D7.14050220032004@news.povray.org>,
cja### [at] earthlinknet says...
> In article <Xns94B1DBBA41E8ZenZenPsychocom@203.29.75.35>,
> Breton Slivka <Zen### [at] ZenPsychocom> wrote:
>
> > <if value="true">
> > <box a="1", b="-1"><pigment><color r="1"/></pigment></box>
> > </if>
>
> It'd be a bit more complex than that. Maybe something like:
>
> <if>
> <condition>
> <equal>
> <lhs><varref identifier="foo"></lhs>
> <rhs><boolean value="true"></rhs>
> </equal>
> or maybe:
> <compare type=equal lhs="foo" rhs="true">
> </condition>
> <then>
> <box x1="1" y1="1" z1="1" x2="-1" y2="-1" z2="-1">
> <plainpigment red="1"/>
> </box>
> </then>
> </if>
>
> This would be equivalent to:
> #if(foo = true)
> box {< 1, 1, 1>, <-1,-1,-1>
> pigment {color red 1}
> }
> #end
>
>
Yep. All you really accomplish is replacing a slightly more obscured
syntax with one that is simpler to read, but takes up more space and more
time to parse. It doesn't really improve matters to fiddle with XML.
--
void main () {
call functional_code()
else
call crash_windows();
}
Post a reply to this message
|
|