[Factor-talk] with* ?
Hi, I'm struggling to see the point of with* from combinators.lib in the git repo: : with* ( obj assoc quot -- assoc curry ) swapd [ [ -rot ] dip call ] 2curry ; inline As far as I can see, it takes an element from the 2nd position in the stack, and curries it into the 3rd inside the quotation. On the other hand I could see the point of the following: : my-with* ( param obj obj quot -- obj obj curry ) [ rot ] dip [ [ -rot ] dip call ] 2curry ; inline (which is 'with' one space to the left). Is the with* in the repo a mistake, and if not, what's is its purpose? Thanks Phil - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] space-invaders error
Hi, I have just started learning Factor and when I try to run the space-invaders example I get this error message: Words calling ``alien-invoke'' must be compiled with the optimizing compiler. alien-invoke-error-library alut alien-invoke-error-symbol alutInit I am running Factor 0.91 on Windows XP. Does anybody know the cause of this error? - Get the name you always wanted with the new y7mail email address.- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] space-invaders error
Hi Scott, If you type :errors it will show you that it cannot find the alut library. This is short for the OpenAL Utility Toolkit. You can download it for Windows here: http://developer.creative.com/articles/article.asp?cat=1sbcat=31top=38aid=46 Hope that helps. Cheers, Kio - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Bug in C-STRUCT: ?
Hi, This is now fixed in the latest git. Slava Jorge Acereda MaciĆ” wrote: I think I'm facing a bug in Factor. I have something like this: TYPEDEF: double PaTime C-STRUCT: PaDeviceInfo { int structVersion } { char* name } { PaHostApiIndex hostApi } { int maxInputChannels } { int maxOutputChannels } { PaTime defaultLowInputLatency } { PaTime defaultLowOutputLatency } { PaTime defaultHighInputLatency } { PaTime defaultHighOutputLatency } { double defaultSampleRate } ; The C library returns correct values for the PaTime fields and the double field (I checked in GDB). But in Factor, all double values have absurd values.The rest are OK. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk