Getting the source code from a BlockClosure

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Getting the source code from a BlockClosure

Jesús Marí
Is there any way to get a String containing the source code of a blockClosure?

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Getting the source code from a BlockClosure

Herby Vojčík
St sourcecode? No. [Have in mind that BlockClosure wraps JS Function, so _every_* JS function is BlockClosure in Amber]
JS sourcecode? #compiledSource.

Herby

* every one in the frame where Amber is loaded; ones from foreign frames are not wrapped

Jesus Mari Aguirre wrote:
> Is there any way to get a String containing the source code of a
> blockClosure?
>
> --
> You received this message because you are subscribed to the Google
> Groups "amber-lang" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [hidden email].
> For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Getting the source code from a BlockClosure

Jesús Marí
In reply to this post by Jesús Marí
Thanks a lot! I'll think another way to do my job! 
I have already finished a driver for CouchDB and I was thinking in a nice way to pass views, lists, updates...in smalltalk code.
I read in other post someone coding a "Couchapp"'like application...this driver will support design/documents...I'll share the project when I finish my job.    


On Saturday, December 28, 2013 7:43:31 PM UTC+1, Jesus Mari Aguirre wrote:
Is there any way to get a String containing the source code of a blockClosure?

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.