1) there was always https://golang.org/pkg/reflect/#MakeFunc

2) and now with the 1.8 plugin support:
https://github.com/dragonfax/go_repl_plugin_example

On Mon, Dec 19, 2016 at 6:11 AM, Konstantin Khomoutov <
flatw...@users.sourceforge.net> wrote:

> On Mon, 19 Dec 2016 03:52:40 -0800 (PST)
> "Jason E. Aten" <j.e.a...@gmail.com> wrote:
>
> > In the context of having a REPL for Go (and the new plugin support!)
> > where we would generate functions at runtime, I'm curious if the
> > garbage collector could be made to scan (perhaps on cue) some
> > designated sub-space for unreachable functions?  Is my assumption
> > correct that functions are not currently garbage collected?
>
> Could you please provide a simple example of "generating a function at
> runtime" in Go?
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to