gijit / gi

gijit is a just-in-time trace-compiled golang REPL. Standing on the shoulders of giants (GopherJS and LuaJIT).
Other
320 stars 17 forks source link

pkg/compiler: fix excessive deref #56

Closed quasilyte closed 5 years ago

quasilyte commented 5 years ago

The (*x.(*T)).M() is identical to x.(*T).M(), since Go does one level auto-deref automatically.

Note that *x in the code above does not perform extra copying as the machine code generated for both forms will be the same.

Signed-off-by: Iskander Sharipov quasilyte@gmail.com

glycerine commented 5 years ago

Ok. Thanks @Quasilyte.