diff --git a/lang/funcs/core/fmt/printf_func.go b/lang/funcs/core/fmt/printf_func.go index 04520804..362f3936 100644 --- a/lang/funcs/core/fmt/printf_func.go +++ b/lang/funcs/core/fmt/printf_func.go @@ -62,7 +62,7 @@ type PrintfFunc struct { // String returns a simple name for this function. This is needed so this struct // can satisfy the pgraph.Vertex interface. func (obj *PrintfFunc) String() string { - return PrintfFuncName + return fmt.Sprintf("%s@%p", PrintfFuncName, obj) // be more unique! } // ArgGen returns the Nth arg name for this function. diff --git a/lang/funcs/simple/simple.go b/lang/funcs/simple/simple.go index e6e5fb2c..11d07487 100644 --- a/lang/funcs/simple/simple.go +++ b/lang/funcs/simple/simple.go @@ -85,7 +85,7 @@ type WrappedFunc struct { // String returns a simple name for this function. This is needed so this struct // can satisfy the pgraph.Vertex interface. func (obj *WrappedFunc) String() string { - return obj.Name + return fmt.Sprintf("%s@%p", obj.Name, obj) // be more unique! } // ArgGen returns the Nth arg name for this function. diff --git a/lang/funcs/simplepoly/simplepoly.go b/lang/funcs/simplepoly/simplepoly.go index cafd7fec..97dc8830 100644 --- a/lang/funcs/simplepoly/simplepoly.go +++ b/lang/funcs/simplepoly/simplepoly.go @@ -148,7 +148,7 @@ type WrappedFunc struct { // String returns a simple name for this function. This is needed so this struct // can satisfy the pgraph.Vertex interface. func (obj *WrappedFunc) String() string { - return obj.Name + return fmt.Sprintf("%s@%p", obj.Name, obj) // be more unique! } // ArgGen returns the Nth arg name for this function.