On Mon, Oct 25, 2010 at 2:08 PM, Doug Coleman <[email protected]> wrote:
> ! the old way
> : get-source-param ( source param -- value )
>    0 <uint> dup [ alGetSourcei ] dip *uint ;
>
> ! the new way
> : get-source-param ( source param -- value )
>    0 uint <ref> dup [ alGetSourcei ] dip uint deref ;

Unless alGetSourcei requires that the input to be initialized, you can
also do this:

{ uint } [ alGetSourcei ] with-out-parameters

If it has to be zeroed out first,

{ { uint initial: 0 } } [ alGetSourcei ] with-out-parameters

Slava

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to