eric-hawthorne / relish

Automatically exported from code.google.com/p/relish
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

builtin cat function does not use relish string conversion constructor of programmer-defined type #71

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a type and an initString s String m MyType > String method
2. Call cat "prefix: " someMyTypeObject
3.

What is the expected output? What do you see instead?
Expect to see "prefix: WHATEVER THE CUSTOM STRING INIT METHOD RETURNS"
Instead observe that relish's builtin default string-of-object function is 
used, which yields e.g.
"prefix: MyType:#3a43ef791b" 

Original issue reported on code.google.com by relis...@gmail.com on 26 May 2014 at 7:55

GoogleCodeExporter commented 9 years ago
Note: Would have to evaluate the relish initString method from within the 
builtin which is in Go.
Would have to do it in the context of the executingMethod and executingPackage 
of the thread.

Original comment by relis...@gmail.com on 26 May 2014 at 7:57