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
wrote:
Hi,
Great. I need to learn a lot.
Thank you.
Manuel
2015-08-03 20:57 GMT+02:00 Rick Hanson :
> > Why
Hi,
Great. I need to learn a lot.
Thank you.
Manuel
2015-08-03 20:57 GMT+02:00 Rick Hanson :
> > > 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
On Mon, Aug 03, 2015 at 02:57:20PM -0400, Rick Hanson wrote:
> It works for me just fine actually.
Yes. And it keeps it simple! ;)
> $ ./pil
> : (de hola (Str)
> "This is just a test."
> (prinl "Hola " Str))
> -> hola
> : (hola "Manuel")
> Hola Manuel
> -> "Manuel"
> :
> > 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
Hi,
Ntch. I got everything wrong.
Thank you very much for the lesson. I'm going to continue to learn.
Thanks again.
Manuel
2015-08-03 8:12 GMT+02:00 Alexander Burger :
> Hi Manuel,
>
> > Unfortunately Rick's solution form doesn't work. May be when calling the
> > function the first thing is
Hi Manuel,
> Unfortunately Rick's solution form doesn't work. May be when calling the
> function the first thing is a string?
> This is what I'm trying:
>
>
> (de *FuncList ())
Are you sure? This sets *FuncList to (NIL), not to NIL
> (de defun1 F
>(setq *FuncList (cons *FuncList (cons (ca
Hi,
Unfortunately Rick's solution form doesn't work. May be when calling the
function the first thing is a string?
This is what I'm trying:
(de *FuncList ())
(de defun1 F
(setq *FuncList (cons *FuncList (cons (car F) (caddr F
(def (car F) (cons (cadr F) (cadddr F))) )
(de defun2 P
Hi Rick,
> Why not just this?
>
>(de thefunc (A B C)
>
> "This is the help text"
>
> (* A B C) )
Yes, perfect :)
♪♫ Alex
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
Why not just this?
(de thefunc (A B C)
"This is the help text"
(* A B C) )
On Aug 2, 2015 9:54 AM, "Alexander Burger" wrote:
> Hi Manuel,
>
> > I'm trying to create a function to define functions with a documentation
> > string like emacs "defun". I'm trying something like this:
Hi Manuel,
> I'm trying to create a function to define functions with a documentation
> string like emacs "defun". I'm trying something like this:
>
> (de defun P
> (def (car P) ...
>
> So the car of P is de function name, but it doesn't works as expected.
You may try this:
(de defun P
(Sorry for the previous mail, it was incorrectly sent.)
Hi,
I'm trying to create a function to define functions with a documentation
string like emacs "defun". I'm trying something like this:
(de defun P
(def (car P) ...
So the car of P is de function name, but it doesn't works as expected.
11 matches
Mail list logo