Re: Discrepancies in lib/misc.l between picoLisp and miniPicoLisp
On Thu, Dec 15, 2016 at 2:22 PM, Alexander Burgerwrote: > Hi Christophe, > >> Trying to port tests to miniPicoLisp I needed to copy some >> definitions from lib/misc.l from pico to mini, and this is what I found: >> >> 1) Many definitions don't appear in pico. Is it intented ? If so, why ? > > Don't appear in *mini*, you mean? Yes sorry. > Well, yes, it is "mini" after all ;) And I plan to make an even smaller version! >> Just to mention my findings. It may be intented for the sake of >> simplicity of mini. > > Thanks! I put 'format' in mini into my todo list :) Glad to see you are interested. Two others, but I understand that mini could have severe limitations that would prevent a fix: 1) «seed» only accepts numbers in mini, 2) «in» doesn't support negative numbers in mini. I'll keep you updated if I find some more. chri -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Re: Discrepancies in lib/misc.l between picoLisp and miniPicoLisp
Hi Christophe, > Trying to port tests to miniPicoLisp I needed to copy some > definitions from lib/misc.l from pico to mini, and this is what I found: > > 1) Many definitions don't appear in pico. Is it intented ? If so, why ? Don't appear in *mini*, you mean? Well, yes, it is "mini" after all ;) And many features of real PicoLisp will not work anyway. > 2) Discrepancy in the $dat implementation: > > mini > (format (pack (car S)))# Year > (or (format (pack (cadr S))) 0)# Month > (or (format (pack (caddr S))) 0) ) ) # Day > > pico > (format (car S)) # Year > (or (format (cadr S)) 0) # Month > (or (format (caddr S)) 0) ) ) # Day Yes, 'format' was changed with picoLisp-3.0.3 in 2010 to accept also lists of characters. Probably I forgot (or had problems?) to port this change to mini. So the 'pack' is not necessary in PicoLisp any more, but still in miniPicoLisp. > Just to mention my findings. It may be intented for the sake of > simplicity of mini. Thanks! I put 'format' in mini into my todo list :) - Alex -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Discrepancies in lib/misc.l between picoLisp and miniPicoLisp
Hi, Trying to port tests to miniPicoLisp I needed to copy some definitions from lib/misc.l from pico to mini, and this is what I found: 1) Many definitions don't appear in pico. Is it intented ? If so, why ? 2) Discrepancy in the $dat implementation: mini (format (pack (car S)))# Year (or (format (pack (cadr S))) 0)# Month (or (format (pack (caddr S))) 0) ) ) # Day pico (format (car S)) # Year (or (format (cadr S)) 0) # Month (or (format (caddr S)) 0) ) ) # Day Tests of $dat written for picoLisp don't pass without the pack in miniPicoLisp. That's because the format function in mini doesn't accept lists. Just to mention my findings. It may be intented for the sake of simplicity of mini. chri -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe