Re: [Pharo-users] Using the Debugger to write code

2017-07-17 Thread Marcus Denker
>>> >>> 2017-07-12 9:09 GMT+02:00 Marcus Denker >> >: >>> in the workspace it creates a variable (with value nil)… so it treats >>> upper-case >>> unknown vars the same as lower case. >>> >>> I think it might make sense to have for upper case instead the menu that

Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread Marcus Denker
> On 12 Jul 2017, at 10:51, Marcus Denker wrote: > > >> On 12 Jul 2017, at 10:46, Denis Kudriashov > > wrote: >> >> >> 2017-07-12 9:09 GMT+02:00 Marcus Denker > >: >> in the workspace it creates a variable (with value nil)… so it tre

Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread Marcus Denker
> On 12 Jul 2017, at 10:46, Denis Kudriashov wrote: > > > 2017-07-12 9:09 GMT+02:00 Marcus Denker >: > in the workspace it creates a variable (with value nil)… so it treats > upper-case > unknown vars the same as lower case. > > I think it might make sense to h

Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread Denis Kudriashov
2017-07-12 9:09 GMT+02:00 Marcus Denker : > in the workspace it creates a variable (with value nil)… so it treats > upper-case > unknown vars the same as lower case. > > I think it might make sense to have for upper case instead the menu that > asks > what to do (it could there have a “add binding

Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread K K Subbu
On Wednesday 12 July 2017 01:36 PM, Marcus Denker wrote: The compiler knows two modes: “Interactive” and not. So if there is a undeclared var, it will in interactive mode ask the user what to do, but when compiling non-interactively it will just add the var to Undeclared (with a nil value) and co

Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread Marcus Denker
> On 12 Jul 2017, at 09:09, Marcus Denker wrote: > > >> On 12 Jul 2017, at 08:54, Sven Van Caekenberghe wrote: >> >> Yes, but these are all inside the method editor. >> >> I wanted to start with >> >> (Motivation fromString: 'foo') sayIt. >> >> in a playground/workspace. > > in the worksp

Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread Marcus Denker
> On 12 Jul 2017, at 08:54, Sven Van Caekenberghe wrote: > > Yes, but these are all inside the method editor. > > I wanted to start with > > (Motivation fromString: 'foo') sayIt. > > in a playground/workspace. in the workspace it creates a variable (with value nil)… so it treats upper-case u

Re: [Pharo-users] Using the Debugger to write code

2017-07-12 Thread p...@highoctane.be
(#Motivation asClass fromString: 'a') sayIt is not working better :-) Should. Phil On Wed, Jul 12, 2017 at 8:54 AM, Sven Van Caekenberghe wrote: > Yes, but these are all inside the method editor. > > I wanted to start with > > (Motivation fromString: 'foo') sayIt. > > in a playground/workspac

Re: [Pharo-users] Using the Debugger to write code

2017-07-11 Thread Sven Van Caekenberghe
Yes, but these are all inside the method editor. I wanted to start with (Motivation fromString: 'foo') sayIt. in a playground/workspace. But with just a DNU it works. > On 12 Jul 2017, at 08:49, p...@highoctane.be wrote: > > What is not working? Check this: > > > > Hit Define new class and

Re: [Pharo-users] Using the Debugger to write code

2017-07-11 Thread Sven Van Caekenberghe
> On 12 Jul 2017, at 08:42, Marcus Denker wrote: > > >> On 12 Jul 2017, at 08:35, K K Subbu wrote: >> >> On Wednesday 12 July 2017 08:33 AM, horrido wrote: >>> But for the life of me, I can't figure out how to create new classes for my >>> application from within the Debugger. Must I create n

Re: [Pharo-users] Using the Debugger to write code

2017-07-11 Thread Marcus Denker
> On 12 Jul 2017, at 08:35, K K Subbu wrote: > > On Wednesday 12 July 2017 08:33 AM, horrido wrote: >> But for the life of me, I can't figure out how to create new classes for my >> application from within the Debugger. Must I create new classes using the >> System Browser first before I can con

Re: [Pharo-users] Using the Debugger to write code

2017-07-11 Thread K K Subbu
On Wednesday 12 July 2017 08:33 AM, horrido wrote: But for the life of me, I can't figure out how to create new classes for my application from within the Debugger. Must I create new classes using the System Browser first before I can continue adding new methods from within the Debugger? What's t

[Pharo-users] Using the Debugger to write code

2017-07-11 Thread horrido
The *Pharo By Example* book says that you can use the Debugger to write code. So if you have a "does not understand" error, you're given the option of Creating a new method. That's cool. But for the life of me, I can't figure out how to create new classes for my application from within the Debugge