Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.

Commit

Permalink
Removed extra code and fixed issue with bad reference within #AssignG…
Browse files Browse the repository at this point in the history
…lobal
  • Loading branch information
petrowsky committed Nov 19, 2015
1 parent b2e6c86 commit 4067354
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions Functions/#Name-Value/#Assign.fmfn
Expand Up @@ -33,8 +33,6 @@

Let ( [
~semiCount = PatternCount ( parameters ; ";¶" );
~rowCount = ValueCount ( parameters );
~validFormat = ~semiCount = ~rowCount;
~variables = Case (
~semiCount = 0 and not IsEmpty ( parameters );
Substitute ( parameters ; ¶ ; ";¶" ) & ";";
Expand Down
4 changes: 1 addition & 3 deletions Functions/#Name-Value/#AssignGlobal.fmfn
Expand Up @@ -27,8 +27,6 @@

Let ( [
~semiCount = PatternCount ( parameters ; ";¶" );
~rowCount = ValueCount ( parameters );
~validFormat = ~semiCount = ~rowCount;
~variables = Case (
~semiCount = 0 and not IsEmpty ( parameters );
Substitute ( parameters ; ¶ ; ";¶" ) & ";";
Expand All @@ -39,7 +37,7 @@ Let ( [
EvaluationError ( Evaluate (
"Let ( ["
& Substitute ( // convert $local to $$GLOBAL variables
¶ & parameters;
¶ & ~variables;
[ "¶$$" ; "¶$" ]; // ... without renaming existing $$GLOBALS
[ "¶$" ; "¶$$" ]
)
Expand Down

0 comments on commit 4067354

Please sign in to comment.