This is really cool! even for the documentation can be embedded on the programming language itself.. or am I just a newbie?
On Tuesday, August 4, 2015 1:36 PM, Manuel Cano <manutalc...@gmail.com> wrote: Hi, Great. I need to learn a lot. Thank you. Manuel 2015-08-03 20:57 GMT+02:00 Rick Hanson <cryptor...@gmail.com>: > > Why not just this? > > > > (de thefunc (A B C) > > "This is the help text" > > (* A B C)) > > Unfortunately Rick's solution form doesn't work. It works for me just fine actually. $ ./pil : (de hola (Str) "This is just a test." (prinl "Hola " Str)) -> hola : (hola "Manuel") Hola Manuel -> "Manuel" : (hola "Ricardo") Hola Ricardo -> "Ricardo" And `hola`, like any other picolisp function, is just a list. : hola -> ((Str) "This is just a test." (prinl "Hola " Str)) So, it's easy to get the doc string out. : (cadr hola) -> "This is just a test." -- UNSUBSCRIBE: mailto:firstname.lastname@example.org?subject=Unsubscribe -- Manuel