[flexcoders] Re: Question from a C developper

2009-03-12 Thread wubac1
long (c++) -- uint (ActionScript) There is no struct option in ActionScript, you can only create a class. Only objects are pass by reference in ActionScript. Converting an int to Number: var i : int = 47; var num : Number = i as Number; --- In flexcoders@yahoogroups.com,

[flexcoders] Re: Question from a C developper

2009-03-12 Thread wubac1
Object equality can be done with the ObjectUtil.compare method or by utilization of the UID interface, depending on your needs. I prefer uint over Number for representing a long. --- In flexcoders@yahoogroups.com, Alain Thibodeau thibodeau.al...@... wrote: - Is it possible to define a

Re: [flexcoders] Re: Question from a C developper

2009-03-12 Thread Maciek Sakrejda
I prefer uint over Number for representing a long. To clarify, uint is just that: an unsigned 32-bit integer. A long is (typically) a signed 64-bit integral number. A uint will allow you to express numbers that are twice as large as the largest int, but that's only a small fraction of the range

[flexcoders] Re: Question from a C developper

2009-03-12 Thread wubac1
That's correct. My use of uint is not a perfect replacement for long and is based on assumptions made for a specific project. I should have been more clear about that. ActionScript does not support long for portability purposes. --- In flexcoders@yahoogroups.com, Maciek Sakrejda