@@ -120,7 +120,7 @@ func ObjectGetProperty(obj Object, name string) Value {
120120 }
121121 }
122122
123- // TODO: we only support `struct` for now. Perhaps simple types (int, float, etc) are worthwhile an enhancement?
123+ // TODO: we only support `struct` receivers for now. Perhaps simple types (int, float, etc) are worthwhile an enhancement?
124124 if t .Kind () != reflect .Struct {
125125 return NewUndefinedWithReasonf ("object is '%s' but only 'struct' and '*struct' are currently supported" , t .Kind ())
126126 }
@@ -143,7 +143,7 @@ func ObjectGetProperty(obj Object, name string) Value {
143143 // allow support for (non-empty) interfaces
144144 return ObjectValue {Object : fieldReflectValue .Interface ()}
145145 }
146- case reflect .Struct : // TODO: incomplete code: see ObjectGetProperty to handle `*struct` scenario.
146+ case reflect .Struct : // TODO: (!!) incomplete code: see ObjectGetProperty to handle `*struct` scenario.
147147 // allow support for struct types
148148 return ObjectValue {Object : fieldReflectValue .Interface ()}
149149 }
@@ -246,7 +246,7 @@ func ObjectGetMethod(obj Object, name string) (FunctionalValue, bool) {
246246 // allow support for (non-empty) interfaces
247247 return ObjectValue {Object : out [0 ].Interface ()}
248248 }
249- case reflect .Struct : // TODO: incomplete code: see ObjectGetProperty to handle `*struct` scenario.
249+ case reflect .Struct : // TODO: (!!) incomplete code: see ObjectGetProperty to handle `*struct` scenario.
250250 // allow support for struct types
251251 return ObjectValue {Object : out [0 ].Interface ()}
252252 }
0 commit comments