Re: [Ficl-developers] poping values off the vm stack?
Brought to you by:
jsadler
From: Michel P. <mi...@zo...> - 2001-11-30 04:02:38
|
Bob Drzyzgula wrote: > > 11/29/2001 9:08:51 PM, Michel Pelletier <mi...@zo...> wrote: > > >The current fun little thing I"m working on is embedding ficl in > >Python. > > How very cool. Will we soon be able to do ficl scripting in Zope? Yep, actually that works right now if you wanted to use it from External Methods or a Zope python product and all you cared about was passing integers into and out of forth. See my other email about working on getting other Python types in and out. This is awesome, Python is my favorite language and Forth was my first! Seeing the two of them together is strangely pleasing. ;) > Can you send me a copy of your stuff when it gets close to working? Uhm.. let me work on the packaging a bit more and I'll get it to you. > The only thing I notice right off the bat is that LVALUEtoCELL expects at least a long, > and you're handing it an int. This will of course only work if int and long are the same > length on your platform. Wouldn't declaring x a long make this clearer? Sounds good to me. Works too. > Also, if the int type is already a long on your system, I'd personally rather see just > > i = PyInt_FromLong(c.i); > > But now I'm probably just being picky. john sadler suggested that to me earlier and it works great. I'll probably spend a few more hours on this tommorow and checked into a CVS that others can have access too if you think you want to help add Ficl to Python. ;) -Michel |