|
![](/i/fill.gif) |
Hello John
I too have got error messages pointing to the
wrong point in my code when my error(s) were
hidden somewhere earlier.
In these cases I just had to start commenting
out code, changing variable names and moving
things around until the error messages points
at my real error.
I suspect that this may also be the case here,
and I have therefore tried to play around with
my code before posting to this newsgroup... But
I haven't had any luck smoking out my(?) errors
yet.
But I have found out that if I replace the last
line of these four:
#declare QQi = array[3]
#declare QQi = Minv(MMi)
#declare RRi = array[3]
#declare RRi = Mmult(MMi, Minv(MMi))
with
#declare RRi = Mmult(MMi, QQi)
then the error messages disappear.
This may be my solution for this time, but the
problem still bothers me, because I want to be
able to replace macros like e.g. this one:
#macro Minv(MM)
#local NN = array[3]
#local PP = array[3]
#local QQ = array[3]
#local s = 1/Mdet(MM);
#local NN = Mcof(MM)
#local PP = Mtrans(NN)
#local QQ = Mscale(s, PP)
QQ
#end
with macors like this one:
#macro Minv(MM)
Mscale(1/Mdet(MM), Mtrans(Mcof(MM)))
#end
Lately I have also found that it seems that
the more I do of the substitutions like the
one above, the more it seems likely that I
start getting those random changing error
messages I have described earlier.
(It seems like I can do some substitutions
without being punished.)
And now I don't know how to proceed in my
hunt for these errors.
Am I the only one who is getting changing
error messages when running the code I
enclosed in my initial posting?
Regards
Tor Olav
mailto:tor### [at] hotmail com
http://www.crosswinds.net/~tok/tokrays.html
John VanSickle wrote:
>
> Tor Olav Kristensen wrote:
> >
> > My problem is that I get several different error
> > messages when I try to Run the file below in this
> > message (I did not alter it between the Runs).
>
> I have sometimes gotten error messages that seemed like the
> wrong error message. If I recall correctly, it turned out that
> the actual error was at some point earlier than what the parser
> flagged.
>
> --
> ICQ: 46085459
Post a reply to this message
|
![](/i/fill.gif) |