Paul;
I got your source so now I'm really dangerous. ;D
1)Do the following 2 lines mean exactly the same from a syntax standpoint and can the format be used either way?
It would make a difference when converting from 'other' languages.
Quote#define WM_GETFONT 0x31
CONST WM_DRAWITEM = 0x2B;
2)In all of your source I only found one 'if' statement that used "==" to test for 'equal to'.ÂÃ, All the other 'if' statements used '='.
Are both okay to use?
3. what is the definition of the operator '->'?ÂÃ,Â
4. Is there a corresponding '<-' ? (seen in web tutorials but didn't find in your source)
5. What do '>>' and '<<' signify?
1) yes they are the same. Use #define for your own use
2) thats a typo. Where did you find it?
3) That is the pointer derference operator.
*c.blah
c->blah
Are equivelents. Your used the first from other languages, I am used to the second form and it is more common.
4) Not that I know of.
5) Bit shifting.
Quote2) thats a typo.ÂÃ, Where did you find it?
After double checking it is a comment in mathlib.a line 293.
I was using 'find in file' on the entire set of source files.
Sorry for the false alarm on that one.
On the '->' I'm just going to have to search the internet for some more tutorials to get a handle on that. I had never used pointers at all.
Thanks
If it's a comment that you found that operator in, it's because Paul uses C++ a lot, in which case the = operator is always assignment and == is testing. For example,
if( (a=b)==c )
will first assign a to be, and then test for equality to c. The aurora code would look like this:
a = b;
if (a = c)
There seems to be an inconsistancy with the use of the "=" in testing (or at least there is some problem with the FOR Loop).
When I use "=" in a FOR loop test it won't compile, but it will in other tests such as "while bla=bla" and "if bla=bla"
for (count = 1; count = 5; count++) // this doesn't work
for (count = 1; count <= 5; count++) // this works o.k.
if (text = "quit")||(text = "QUIT") break; // this works o.k.
while (getkey() = ""); // this works o.k.
I haven't tried any OOP stuff yet, just stumbling through simple console stuff.
The || operator means XOR in Aurora, the word "or" is used for the purpose of C's ||. I've never used the "count=5" syntax in that part of a for loop, it should work, I guess Paul will have to fix that.
thanks for the heads up on the ||, I thought it was "or"
I got my FOR to work using <= and >=. The = failed to compile.