GT Inspector: Inst Vars Not Bound

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

GT Inspector: Inst Vars Not Bound

Sean P. DeNigris
Administrator
1. Go "#(1 2) asOrderedCollection"
2. In the right pane, type "firstIndex" and Go again

Either nothing happens or another pane opens on nil. "firstIndex" stays in red, showing that it's not recognized.

Is this limitation on purpose?
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: GT Inspector: Inst Vars Not Bound

Tudor Girba-2
The object playground only binds self.

Indeed, binding all instance variables is an option. However, we also considered injecting other kinds of ready initialized objects. For example, one possibility would be to bind "view -> RTView new" or other similar utilities.

We did not yet find the right balance, so this is why at the moment, we only have self to leave a bit of room for playing around. I hope that's Ok.

Cheers,
Doru

On Thu, Apr 9, 2015 at 5:00 PM, Sean P. DeNigris <[hidden email]> wrote:
1. Go "#(1 2) asOrderedCollection"
2. In the right pane, type "firstIndex" and Go again

Either nothing happens or another pane opens on nil. "firstIndex" stays in
red, showing that it's not recognized.

Is this limitation on purpose?



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/GT-Inspector-Inst-Vars-Not-Bound-tp4818610.html
Sent from the Moose mailing list archive at Nabble.com.
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: GT Inspector: Inst Vars Not Bound

Ben Coman
Sorry I can't remember the details, but I've had a few occasions where I wanted to send a #message to an instance variable and have the result show in the next pane.  It seems cumbersome to have to select the instance variable first, then send the #message the self.

Also (not that I've hit this yet) - what if you want to send a message to an instance variable with another instance variable as a parameter?  

cheers -ben

On Fri, Apr 10, 2015 at 4:29 PM, Tudor Girba <[hidden email]> wrote:
The object playground only binds self.

Indeed, binding all instance variables is an option. However, we also considered injecting other kinds of ready initialized objects. For example, one possibility would be to bind "view -> RTView new" or other similar utilities.

We did not yet find the right balance, so this is why at the moment, we only have self to leave a bit of room for playing around. I hope that's Ok.

Cheers,
Doru

On Thu, Apr 9, 2015 at 5:00 PM, Sean P. DeNigris <[hidden email]> wrote:
1. Go "#(1 2) asOrderedCollection"
2. In the right pane, type "firstIndex" and Go again

Either nothing happens or another pane opens on nil. "firstIndex" stays in
red, showing that it's not recognized.

Is this limitation on purpose?



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/GT-Inspector-Inst-Vars-Not-Bound-tp4818610.html
Sent from the Moose mailing list archive at Nabble.com.
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: GT Inspector: Inst Vars Not Bound

Tudor Girba-2
Hi,

On Fri, Apr 10, 2015 at 3:46 PM, Ben Coman <[hidden email]> wrote:
Sorry I can't remember the details, but I've had a few occasions where I wanted to send a #message to an instance variable and have the result show in the next pane.  It seems cumbersome to have to select the instance variable first, then send the #message the self.
Also (not that I've hit this yet) - what if you want to send a message to an instance variable with another instance variable as a parameter?  

Then you should refactor your code to make it used its own state :).

Joke aside, as I mentioned before, I agree that it is a valid use case. But, it's not the only one. We just need a bit more time to explore these facets.

Cheers,
Doru 

 
cheers -ben

On Fri, Apr 10, 2015 at 4:29 PM, Tudor Girba <[hidden email]> wrote:
The object playground only binds self.

Indeed, binding all instance variables is an option. However, we also considered injecting other kinds of ready initialized objects. For example, one possibility would be to bind "view -> RTView new" or other similar utilities.

We did not yet find the right balance, so this is why at the moment, we only have self to leave a bit of room for playing around. I hope that's Ok.

Cheers,
Doru

On Thu, Apr 9, 2015 at 5:00 PM, Sean P. DeNigris <[hidden email]> wrote:
1. Go "#(1 2) asOrderedCollection"
2. In the right pane, type "firstIndex" and Go again

Either nothing happens or another pane opens on nil. "firstIndex" stays in
red, showing that it's not recognized.

Is this limitation on purpose?



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/GT-Inspector-Inst-Vars-Not-Bound-tp4818610.html
Sent from the Moose mailing list archive at Nabble.com.
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev



_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev




--

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: GT Inspector: Inst Vars Not Bound

Sean P. DeNigris
Administrator
In reply to this post by Tudor Girba-2
Tudor Girba-2 wrote
We... leave a bit of room for playing around. I hope that's Ok.
Sure! I will happily suffer a bit today if it helps us invent a powerful new future tomorrow... or maybe next week ;)
Cheers,
Sean