Set an instance variable from javascript

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

Set an instance variable from javascript

Jacob Wagner
How does one set a smalltalk instance variable from < >  javascript code methods?  I would not be using < > at all, but I cannot replicate a certain javascript code in smalltalk properly.

--
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.
 
 
<zenchess@gmail.com>
Reply | Threaded
Open this post in threaded view
|

Re: Set an instance variable from javascript

Nicolas Petton
With @, like the following:

< self[ "@instVar" ] = 1; >

Nico

On Mar 7, 2013, at 2:26 PM, Zenchess <[hidden email]> wrote:

How does one set a smalltalk instance variable from < >  javascript code methods?  I would not be using < > at all, but I cannot replicate a certain javascript code in smalltalk properly.

--
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: Set an instance variable from javascript

Manfred Kröhnert
Should this be added to the FAQ on the wiki?

Manfred

On Thu, Mar 7, 2013 at 2:29 PM, Nicolas Petton <[hidden email]> wrote:
With @, like the following:

< self[ "@instVar" ] = 1; >

Nico

On Mar 7, 2013, at 2:26 PM, Zenchess <[hidden email]> wrote:

How does one set a smalltalk instance variable from < >  javascript code methods?  I would not be using < > at all, but I cannot replicate a certain javascript code in smalltalk properly.

--
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.
 
 

--
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: Set an instance variable from javascript

Nicolas Petton
yep :)


On Mar 10, 2013, at 1:18 PM, Manfred Kröhnert <[hidden email]> wrote:

Should this be added to the FAQ on the wiki?

Manfred

On Thu, Mar 7, 2013 at 2:29 PM, Nicolas Petton <[hidden email]> wrote:
With @, like the following:

< self[ "@instVar" ] = 1; >

Nico

On Mar 7, 2013, at 2:26 PM, Zenchess <[hidden email]> wrote:

How does one set a smalltalk instance variable from < >  javascript code methods?  I would not be using < > at all, but I cannot replicate a certain javascript code in smalltalk properly.

--
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.
 
 


--
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: Set an instance variable from javascript

Manfred Kröhnert
Ok, I added it here: https://github.com/amber-smalltalk/amber/wiki/FAQ

On Sun, Mar 10, 2013 at 1:38 PM, Nicolas Petton <[hidden email]> wrote:
yep :)


On Mar 10, 2013, at 1:18 PM, Manfred Kröhnert <[hidden email]> wrote:

Should this be added to the FAQ on the wiki?

Manfred

On Thu, Mar 7, 2013 at 2:29 PM, Nicolas Petton <[hidden email]> wrote:
With @, like the following:

< self[ "@instVar" ] = 1; >

Nico

On Mar 7, 2013, at 2:26 PM, Zenchess <[hidden email]> wrote:

How does one set a smalltalk instance variable from < >  javascript code methods?  I would not be using < > at all, but I cannot replicate a certain javascript code in smalltalk properly.

--
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.
 
 


--
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.
 
 

--
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.