Pharo Smalltalk Users mailing list wrote
> when I call on the class side the method which
> should reed the masses which are on the instanc side , the masses
> cannnot be found.
IntComputer class >> solution
| computer ram |
computer := self new.
computer readRam: masses.
On Tue, Dec 31, 2019 at 11:29 AM Roelof Wobben via Pharo-users
wrote:
>
> I solved it but I think with ugly code on the class side.
>
> solution
> | computer |
> computer := self new.
> computer readRam: computer masses.
> computer patchRam: 1 value: 12.
> computer patchRa
Hi Roelof,
I could file-in or look at your attached code to try to help,
but its not clear what your question is or how to reproduce your scenario.
You say... "when I call on the class side the method which should read the
masses"which is a non-specific **description**.
So I feel its extra wo
--- Begin Message ---
I solved it but I think with ugly code on the class side.
solution
| computer |
computer := self new.
computer readRam: computer masses.
computer patchRam: 1 value: 12.
computer patchRam: 2 value: 2.
computer processData: computer ram.
computer at
--- Begin Message ---
nope,
Then masses is still not understood , I tried that already and tried it
a few moments ago.
Roelof
Op 31-12-2019 om 12:30 schreef jtuc...@objektfabrik.de:
Roelof,
I didn't import your code, just read the .st file in an editor, and
I'm not an expert in Pharo sou
Roelof,
I didn't import your code, just read the .st file in an editor, and I'm
not an expert in Pharo source files, so maybe I overlooked something. I
even don't have Pharo on this machine I'm sitting at.
Still you seem to reference a variable called masses and send this as an
argument to rea
--- Begin Message ---
Thanks.
I think I misunderstood you.
There is a instance method called masses where all the numbers are
mentioned.
The class variable masses that I used there was just because masses were
not understood but that one can be deleted.
Roelof
Op 31-12-2019 om 12:18 schre
I only skimmed over your code briefly. It seems you implemented a class
method #masses which returns stuff, but never call that method. You
reference the class var #masses which is never initialized.
So I guess there should be some place where you assign the return value
of #masses to the mass
--- Begin Message ---
Hello,
Im still trying to make part1 of day2 working at a way I can also test
things.
the tests are working but when I call on the class side the method which
should reed the masses which are on the instanc side , the masses
cannnot be found.
So question 1 is why is mas