|
|
> //#declare vector1 = <0, 0>;
> //#declare vector2 = <0, 0>;
> #while(defined(a_file))
> #read(a_file, vector1, vector2)
> #end
> the problem arises when parsing the statement in the box clause (the
> vectors) The error message is "bad operands for period operator". If
> the first two declarative lines are uncommented (as well as the
> undefs), the error message reads: "expected 'undeclared identifier',
> uv vector identifier found instead."
> I thought that "read" worked fine with undeclared identifiers? Someone
> help please, this is driving me mad!
"read" expects undeclared identifiers, so when you uncomment the first
two lines it gets confused because you haven't given it undeclared
identifiers, you've given it the names of UV vectors.
As for the original problem, I'm not really sure what's wrong. Perhaps
you might try writing ".u" and ".v" instead of ".x" and ".y"? Maybe
writing "(vector1.x)" instead of "vector1.x" and so on would work?
HTH,
Daniel
--
A most peculiar man With the windows closed And Mrs Reardon says
He died last Saturday So he'd never wake up He has a brother somewhere
He turned on the gas To his silent world Who should be notified soon
And he went to sleep And his tiny room .oO( http://sad.istic.org/ )
Post a reply to this message
|
|