mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add $member.get(value) to replace value.$eval($member.nameof)
This commit is contained in:
@@ -25,7 +25,7 @@ macro deep_print(a)
|
||||
io::print("{");
|
||||
$foreach ($i, $m : $typeof(a).membersof)
|
||||
if ($i > 0) io::print(", ");
|
||||
deep_print(a.$eval($m.nameof));
|
||||
deep_print($m.get(a));
|
||||
$endforeach
|
||||
io::print("}");
|
||||
$default:
|
||||
|
||||
Reference in New Issue
Block a user