I have several questions

25 views
Skip to first unread message

lisp...@gmail.com

unread,
Oct 28, 2010, 1:17:13 AM10/28/10
to Lisphp
1. Can lisphp support ">", "<" ?
and how to use?
2. How to use 'cond', 'eval' ?
please give me examples.

Thank you for your attention!

Hong Minhee

unread,
Oct 28, 2010, 2:05:16 AM10/28/10
to lis...@googlegroups.com
1. There's no comparison operator e.g. `<`, `<=`. I will commit this soon.

2. There is not `cond` but `if`. Try write `cond` macro yourself. :-)

`eval` takes a list or an atom. For example:

>>> (eval :1)
==> 1
>>> (eval :(+ 1 2))
==> 3
>>> (define pi 3.14)
==> 3.14
>>> (eval :pi)
==> 3.14

--
야간개발팀 Lunant
http://lunant.com/
洪民憙 Hong Minhee
http://dahlia.kr/

Hong Minhee

unread,
Oct 28, 2010, 2:23:53 AM10/28/10
to lis...@googlegroups.com
I have wrote four comparing operators: `>`, `<`, `>=` and `<=`.

>>> (> 1 2 3)
==> false
>>> (< 1 2 3)
==> true
>>> (<= 1 2 2)
==> true
>>> (>= 3 3 1)
==> true

Check the changeset:
http://github.com/lunant/lisphp/commit/41132799f6baac06e5c9ad9cfabe1e46a503c6da

Thanks.

2010/10/28 Hong Minhee <dah...@lunant.com>:

lisp...@gmail.com

unread,
Oct 28, 2010, 4:46:54 AM10/28/10
to Lisphp
thank you.

I checked github/dahlia.... but not working...
I try github/lunant... It works.
I'll check at lunant, now.


On 10월28일, 오후3시23분, Hong Minhee <dah...@lunant.com> wrote:
> I have wrote four comparing operators: `>`, `<`, `>=` and `<=`.
>
> >>> (> 1 2 3)
> ==> false
> >>> (< 1 2 3)
> ==> true
> >>> (<= 1 2 2)
> ==> true
> >>> (>= 3 3 1)
>
> ==> true
>
> Check the changeset:http://github.com/lunant/lisphp/commit/41132799f6baac06e5c9ad9cfabe1e...
>
> Thanks.
>
> 2010/10/28 Hong Minhee <dah...@lunant.com>:
>
>
>
>
>
>
>
>
>
> > 1. There's no comparison operator e.g. `<`, `<=`. I will commit this soon.
>
> > 2. There is not `cond` but `if`. Try write `cond` macro yourself. :-)
>
> > `eval` takes a list or an atom. For example:
>
> >>>> (eval :1)
> > ==> 1
> >>>> (eval :(+ 1 2))
> > ==> 3
> >>>> (define pi 3.14)
> > ==> 3.14
> >>>> (eval :pi)
> > ==> 3.14
>
Reply all
Reply to author
Forward
0 new messages