Re: [Factor-talk] help with some code

2010-01-31 Thread Kobi Lurie
I just realized that I didn't let you guys know what was concluded. In the end, with some help in irc, I went for the runtime reflection feature of mirrors http://paste.factorcode.org/paste?id=1068 kobi On 17/11/2009 02:38, Slava Pestov wrote: > Hi Kobi, > > You need to ensure that the value

Re: [Factor-talk] help with some code

2009-11-16 Thread Slava Pestov
Hi Kobi, You need to ensure that the value passed in to 2cleave is constructed at compile time. To do this, move the 'map' call inside the macro. Also note that a macro's body must evaluate to a quotation, not a value; and declaring a macro as 'inline' has no effect. However, I'm puzzled as to wh

[Factor-talk] help with some code

2009-11-16 Thread Kobi Lurie
Hey guys, if you may I would like to ask another question I get an error about 2cleave cannot be compiled from the following code. And I feel in any case I'm going the wrong way here. Is what I'm doing makes sense? please give pointers. Also I'm new to macros, not sure I use them correctly. The p