Skip to content

Commit 3b660b1

Browse files
committed
v0.23: closure source form is printed
1 parent ddedf86 commit 3b660b1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

arc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,8 @@ A symbol can be coerced to a string.
18341834
}
18351835
case T_CLOSURE:
18361836
{
1837-
s = "#<closure>";
1837+
atom a2 = make_cons(sym_fn, make_cons(a.as<struct closure>().args, a.as<struct closure>().body));
1838+
s = "#<closure>" + to_string(a2, 1);
18381839
break;
18391840
}
18401841
case T_MACRO:

arc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#endif
3535

3636
namespace arc {
37-
constexpr auto VERSION = "0.22";
37+
constexpr auto VERSION = "0.23";
3838

3939
enum type {
4040
T_NIL,

0 commit comments

Comments
 (0)