invalid recursive type in a struct in go

后端 未结 2 1454
Happy的楠姐
Happy的楠姐 2021-02-04 23:54

I am new to the Go programming language and I have an assignment to create and interpreter but I am running into the following problem:

I want to define an Environment a

2条回答
  •  攒了一身酷
    2021-02-05 00:19

    I hope this should fix the problem:

    Environment{&fun_Val.ds,fun_Val.param,exp.arg_exp.interp(env)}
    

    (The & is the 'address of' operator in Go.)

提交回复
热议问题