IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Parker on December 12, 2005, 08:27:02 AM

Title: Places where automatic typecast in dereferencing doesn't work
Post by: Parker on December 12, 2005, 08:27:02 AM
I've noticed a few places where I've declared something as string * or int * or a pointer to a UDT type, and when I try to use *variable, it gives me an error. When I put *(string)variable it works though.

Anyways, these lines required the fix:
if (instr(*(string)m_pFile, "<%") = 0)
ch = *(Lexer)this.*(string)m_pFile[m_uPos];
// m_pFile is declared as the following:
// string *m_pFile;
// This line works fine:
Read(file, *m_pFile, GetFileLength(file));

If you need more to reproduce the error I can post the subroutines where the errors occurred.
Title: Re: Places where automatic typecast in dereferencing doesn't work
Post by: Ionic Wind Support Team on December 12, 2005, 08:37:27 AM
Noted.  Thanks.
Title: Re: Places where automatic typecast in dereferencing doesn't work
Post by: Parker on December 26, 2005, 08:20:34 PM
I've found another one, which may have been brought on by the addition of the -> operator:
*ptr = mid$(ld->*pText, start+1, (ld->uPos-start)-1);
If I write *(string)pText it works. The error message given is "no appropriate conversion exists"