[Bug] Struct properties right-hand value no longer evaluates built-in functions as first class citizens

Completed

Comments

4 comments

  • Core Tech

    You will need to use the method() function to do this like

    ...

    set : method( undefined, ds_list_set );

    ...

    That is what the function is for.

     

    Russell

    0
    Comment actions Permalink
  • Zach Reedy

    Hi, attempting to do this. I get the following error.

    ___________________________________________
    ############################################################################################
    ERROR in
    action number 1
    of Create Event
    for object <undefined>:

    global variable name 'array_create' index (100104) not set before reading it.
    at gml_Script_GMLodash (line 333) - create: method(undefined, array_create),
    ############################################################################################
    gml_Script_GMLodash (line 333)
    gml_Script_gmLodashInstance (line 368)
    gml_GlobalScript_UnitTests (line 2) - _.filter([1,2,3,4], function (x) { return x <= 2; }),
    0
    Comment actions Permalink
  • Core Tech

    @QA - This is a bug, can you please file it in Jira

     

    Russell

    0
    Comment actions Permalink
  • YoYo QA Dept

    A bug has been logged

    Thank you ,
    Scott

    0
    Comment actions Permalink

Please sign in to leave a comment.