Skip to content

Commit

Permalink
remove the restriction that the first argument to 'apply' must be a f…
Browse files Browse the repository at this point in the history
…unction.
  • Loading branch information
OldLiu001 committed Aug 8, 2024
1 parent e77cd06 commit e8f6921
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions impls/vbs/core.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -487,10 +487,10 @@ Function MApply(objArgs, objEnv)
Dim objFn
Set objFn = objArgs.Item(1)
CheckType objFn, TYPES.PROCEDURE
If objFn.IsSpecial Or objFn.IsMacro Then
Err.Raise vbObjectError, _
"MApply", "Need a function."
End If
' If objFn.IsSpecial Or objFn.IsMacro Then
' Err.Raise vbObjectError, _
' "MApply", "Need a function."
' End If

Dim objAST
Set objAST = NewMalList(Array(objFn))
Expand Down

0 comments on commit e8f6921

Please sign in to comment.