[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with passing floats through apple events

>I am looking for a way to pass floats (short-floats) in an apple event.
>What I need is a pointer to the location of the short-float much like the
>(%int-to-ptr i) function I would like a %short-float-to-ptr function so that I
>can poke the bytes of the float.
>Thanks for the help,

Check out the %ADDRESS-OF function. You won't even have to bother
with pointers as %ADDRESS-OF will return the integer representation of
immediate objects.


* Guillaume Cartier                 (514) 844-5294 (maison)         *
* L.A.C.I.M.                        (514) 987-4290 (bureau)         *
* Universite du Quebec a Montreal   (514) 987-8477 (telecopieur)    *
* Montreal, Quebec, Canada          cartier@math.uqam.ca (internet) *