Skip to content

Commit

Permalink
Design Workaround for argument types Expression in
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Sep 4, 2024
1 parent bbab4db commit 4c8dbb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/canary/metta_eval.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,8 @@

eval_20(Eq,RetType,Depth,Self,['format-args',Format,Args],Result):-
eval_args(Eq,RetType,Depth,Self,Format,EFormat),
eval_args(Eq,RetType,Depth,Self,Args,EArgs),
%eval_args(Eq,'Expression',Depth,Self,Args,EArgs),
Args=EArgs,
is_list(EArgs),string_chars(EFormat, FormatChars), !,
user_io(with_output_to_str( Result, format_nth_args(FormatChars, 0, EArgs))).
eval_20(Eq,RetType,Depth,Self,['format-args',_Fmt,Args],_Result) :-
Expand Down
2 changes: 1 addition & 1 deletion src/canary/stdlib_mettalog.metta
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@
(@param "Expression with {} symbols to be replaced")
(@param "Atoms to be placed inside expression instead of {}")))
(@return "Expression with replaced {} with atoms"))
(: format-args (-> String Expresson String))
(: format-args (-> String Atom String))
;; Implemented from Interpreters

;; Public MeTTa
Expand Down

0 comments on commit 4c8dbb6

Please sign in to comment.