Category talk:Go: Difference between revisions

Introspection solution posted
(→‎Tasks not considered / Omit from Go: add task Include a file)
(Introspection solution posted)
Line 48:
===Include a file===
The Go authors would be quite dismayed if it were discovered that this was possible.
 
===Introspection===
This one might be doable...have to play with the debug/gosym package...
: okay, definitely doable. I've figured out how to load the symbol table and locate the symbols, now just to decode the type information, do the manual type checking, and set up and execute a function call... —[[User:Sonia|Sonia]] 04:23, 29 May 2011 (UTC)
 
===Jensen's Device===
Line 91 ⟶ 87:
Update: Solution posted! After some gnashing of teeth, and ultimately eating of words, I settled on a pretty good rendition of the try/catch pattern to post for this task. It doesn't meet the task to the letter, but I think certainly does in spirit. —[[User:Sonia|Sonia]] 01:45, 3 May 2011 (UTC)
 
===Introspection===
This one might be doable...have to play with the debug/gosym package...
: okay, definitely doable. I've figured out how to load the symbol table and locate the symbols, now just to decode the type information, do the manual type checking, and set up and execute a function call... —[[User:Sonia|Sonia]] 04:23, 29 May 2011 (UTC)
 
Update: Solution posted. It's kind of a partial solution because I didn't decode the types, but I'd had this code sitting around and I wanted to post what I had. —[[User:Sonia|Sonia]] 13:25, 9 June 2011 (UTC)
===Shell one-liner===
Go has no standard interpreter...yet.
1,707

edits