IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Parker on January 03, 2006, 05:35:47 PM

Title: Okay, found the place where a standard cast is needed
Post by: Parker on January 03, 2006, 05:35:47 PM
I've found it! The place where a cast like (int)x would be needed, that is. Say I declared a function like this:
declare import, Function(pointer x)
If I wanted to pass my UINT (okay then, unsigned int) variable, by default it would pass the address. In IBPro, I can change this by doing Function(##<POINTER>UINT_Var). In Aurora at the current time, there isn't a way to do this.

Anyways, I guess I'm just determined to get it into the final version at least. Hopefully sooner :)

Thanks
Title: Re: Okay, found the place where a standard cast is needed
Post by: Ionic Wind Support Team on January 03, 2006, 06:59:24 PM
UINT_var+0

Will pass the contents and not the address ;)

Title: Re: Okay, found the place where a standard cast is needed
Post by: Parker on January 03, 2006, 09:22:59 PM
Maybe so, but it's much easier to read with the casting. I suppose if you really don't want it, we can work around it, but it'd just be nice... I won't go on about this anymore.
Title: Re: Okay, found the place where a standard cast is needed
Post by: Ionic Wind Support Team on January 03, 2006, 09:29:38 PM
Quote
In Aurora at the current time, there isn't a way to do this.

Just showing there was a way.   I am not quite done with the syntax yet...so a bit of patience. ;)
Title: Re: Okay, found the place where a standard cast is needed
Post by: Parker on January 03, 2006, 09:38:13 PM
Okay, thanks. I just wanted to get it in eventually. Of course this stuff takes time, and I can wait.
Title: Re: Okay, found the place where a standard cast is needed
Post by: Zen on January 04, 2006, 09:06:35 AM
He He. Your so determine to find somewhere you need to cast. Id like to see it too, but dont mind waiting as i havnt needed it yet.

Lewis
Title: Re: Okay, found the place where a standard cast is needed
Post by: Parker on January 04, 2006, 03:07:35 PM
I'm thinking of the Windows API. Sure it's nice to be able to just pass a number, but then how do you remember what it means? If you see (HMENU)1, you realize that you were meaning the control ID. It also makes you more aware of what's going on.
Title: Re: Okay, found the place where a standard cast is needed
Post by: Zen on January 04, 2006, 03:15:22 PM
Yes i agree, it is good, especialy if you are reading someone elses code. Its a right pain if you have to do a ton of detective work to find things out when there are ways to do it more simply.

Lewis