Re: [Factor-talk] Some beginner questions with a focus on stack effects

2018-10-07 Thread CW Alston
Hi - Interesting question, neat recursive solution. Trying it out, I needed to escape the inner double quotes in the definition of other-quote: : other-quote ( quote -- quote’ ) "\"" = "``" "\"" ? ; to pass the compiler, and all worked well. Cheers, ~cw On Sun, Oct 7, 2018 at 1:18 PM

Re: [Factor-talk] Some beginner questions with a focus on stack effects

2018-10-07 Thread Luca Di Sera
Thanks a lot for the explanation. It was very clear and now it seems almost obvious where the error was. I was able to correct another source I wrote where I was stuck on the same error. Your solution is beautiful. Code like yours is the reason I was drawn to factor so much. I'm really thankful

Re: [Factor-talk] Some beginner questions with a focus on stack effects

2018-10-07 Thread Alexander Ilin
A shorter way to write `other-quote`: : other-quote ( quote -- quote' )   "''" = "``" "''" ? ; 07.10.2018, 15:21, "Alexander Ilin" :Hello, Luca!  Such a humble email, I could not leave without an answer. Questions like this are completely appropriate on this mailing list.  Here are a few changes I

Re: [Factor-talk] Some beginner questions with a focus on stack effects

2018-10-07 Thread Alexander Ilin
Hello, Luca!  Such a humble email, I could not leave without an answer. Questions like this are completely appropriate on this mailing list.  Here are a few changes I made to make your code compilable: WAS:: gather-input ( mapping -- seq\f )    readln ; CORRECT:: gather-input ( -- seq\f )   readln

[Factor-talk] Some beginner questions with a focus on stack effects

2018-10-07 Thread Luca Di Sera
Hello to all, I'm a beginner factor programming. I learned about factor in the "Seven More Languages in Seven Weeks" book and could not avoid falling in love with it. I'm trying to learn it at work in my lunch-breaks and one of