That was a potential guess for me, but I didn't know if it was one
of those "iffy" situations in the S+ compiler that might bite me in
the ass down the road, y'know?
Maybe I'll get off my butt and see what happens if I change it over
the weekend...
- Chip
P.S. Oliver - thanks for your answer too, and enjoy the beer!!
--- In Crestron@..., "Joseph K. Vossen" <jkv@...> wrote:
[snip]
My mindset was that the result of MID doesn't exist as a variable,
well, actually it does. I can't say for certain with the SIMPL+
compiler, but all of the compilers I have worked on will generate a
"temporary" whose type/size is "local" to the block and is used to
hold the value for cases like this. The temporary is generated on the
stack so it will "disappear" when you go out of scope. You can't
reference it directly (by name) since it is typically generated
above/below (depends on how the stack frame is maintained) the
variables that the programmer declared for that block.
[more snip]