#'!=/2 stopped working in v1.3?

56 views
Skip to first unread message

Li, Bing

unread,
Jul 30, 2017, 10:17:42 AM7/30/17
to Lisp Flavoured Erlang
Hi,

#'==/2 still works fine.

Any idea why #'!= doesn't?

Thank,

(apply #'!=/2 [1 2])

exception error: #(unbound_func #(!= 2))


Robert Virding

unread,
Jul 31, 2017, 5:15:55 PM7/31/17
to Lisp Flavoured Erlang
Hi,

The simple reason is because ==/2 and /=/2 are functions while !=/2 is a macro and I have changed how #'!=/2 expanded. The more difficult answer is how I am going to handle it so it will handle macros as well. I will have to revert it in some way. For now you can replace #'!=/2 with (fun != 2) and it will work.

Robert

Li, Bing

unread,
Aug 1, 2017, 11:12:40 AM8/1/17
to Lisp Flavoured Erlang
Thanks, Robert,

(fun != 2) works.

--
You received this message because you are subscribed to a topic in the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lisp-flavoured-erlang/5AGXwYsJwuQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
Visit this group at https://groups.google.com/group/lisp-flavoured-erlang.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages