[Factor-talk] String replace

2008-02-08 Thread Victor M.
I can replace single chars on a string with: "hello" [ dup CHAR: l = [ drop CHAR: B ] when ] map > But I don't know how to do it with strings. Something like: "hello" "l" "BBB" replace-string Thanks in advance. - This SF.n

Re: [Factor-talk] String replace

2008-02-13 Thread Victor M.
Thanks for the source code but I am surprised that there is nothing like 'find-and-replace' in the Factor library. On Feb 9, 2008 3:25 PM, Stefan Scholl <[EMAIL PROTECTED]> wrote: > Victor M. <[EMAIL PROTECTED]> wrote: > > But I don't know how t

Re: [Factor-talk] Standard string representation protocol

2008-02-27 Thread Victor M.
You can do: [ { 10 20 30 } pprint ] string-out On Wed, Feb 27, 2008 at 4:00 PM, Jorge Acereda <[EMAIL PROTECTED]> wrote: > On Wed, Feb 27, 2008 at 3:51 PM, Nikhil Marathe <[EMAIL PROTECTED]> > wrote: > > Hello all, > > I'm new to factor, and I was wondering if there is an equivalent for > > Pyth

[Factor-talk] Factor + breakpoint = crash

2008-03-04 Thread Victor M.
Factor crash when I add a breakpoint inside a quot inside another quot. Steps: 3 3 [ over [ over 2array . ] each drop ] each drop ctrl+w second button over 2array and select breakpoint And another question. Is there an easy way to do a double loop? Something like: for i = 0 to 2 do for j = 0 t

[Factor-talk] Mingw + factor + my machine = crash

2008-03-18 Thread Victor M.
Factor crash at line image.c:27, fread returns -1 but at the line 29 ferror returns 0. The image file seems to be ok. It can be an error of my machine because the factor binaries of the web returns a 'Memory protection fault at address 0'. Any ideas? 16 INLINE void load_data_heap(FILE *file,

Re: [Factor-talk] Factor-way locals

2008-04-07 Thread Victor M.
I think that a function like bind could be more intersting. Something like: 1 2 3 4 [ a b c d ] [ a b + c d + + ] bind The function will automatically create local variables (local only on the second seq) using the values from the stack. And in a more advanced version it can be used to create fu

[Factor-talk] Factor crash

2008-05-20 Thread Victor M.
I have problems running factor on my machine (AMD Athlon 64 X2 Dual + Windows 32 bits). The web binaries does nothing, no error message, nothing. But if I compile factor manually appears a message error: $ ./factor The image refers to a library or symbol that was not found at load time At finishi

Re: [Factor-talk] Factor crash

2008-05-20 Thread Victor M.
t; > On May 20, 2008, at 8:19 AM, Victor M. wrote: > > > I have problems running factor on my machine (AMD Athlon 64 X2 Dual > > + Windows 32 bits). The web binaries does nothing, no error message, > > nothing. But if I compile factor manually appears a message error: > &g

Re: [Factor-talk] Factor crash

2008-05-21 Thread Victor M.
It works ok. So What's the problem? The GUI? The OpenGL interface? 2008/5/21 Slava Pestov <[EMAIL PROTECTED]>: > Hi, > Try this > > ./factor -run=listener > > Does that work? > > Slava > > On May 21, 2008, at 12:58 AM, Victor M. wrote: > > Now I

Re: [Factor-talk] Factor crash

2008-05-21 Thread Victor M.
gt; ] [ dup (open-window) -> dup world-title over set-title request-focus ] (open-window)/windows-ui-backend create-window CreateWindowExW [ self error-thread set-global continuation -> error-continuation set-global rethrow ] ( scratchpad ) 2008/5/21 Slava Pestov <[EMAIL PROT

Re: [Factor-talk] Factor crash

2008-05-21 Thread Victor M.
ation -> error-continuation set-global rethrow ] ( scratchpad ) 2008/5/22 Slava Pestov <[EMAIL PROTECTED]>: > Is this with the version you compiled or with the binary package? > Slava > > On May 22, 2008, at 12:56 AM, Victor M. wrote: > > $ ./factor -run=listener >

Re: [Factor-talk] Factor crash

2008-05-22 Thread Victor M.
binary package the dll loads fine but it seems to stop at CreateWindowEx. 2008/5/22 Slava Pestov <[EMAIL PROTECTED]>: > This is very strange. > What if you copy freetype6.dll from the binary package into the source > directory? > > Slava > > On May 22, 2008, at 1:21 AM, Vi

[Factor-talk] Factor crash

2008-10-24 Thread Victor M.
Factor + Hide Folders XP = Crash It seems that Hide Folders XP injects hdr.dll into the factor process. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications