Also if you add #FOO to UserGlobals you should be able to reference it like:
FOO add: user
ie. without the symbol hash (#)
> On 17 Aug 2019, at 11:28 pm, ian wrote:
>
> ---
> #FOO add: user
> ---
> The difficulty I am having is that when I want to query the UserManager db
> with something like:
>
> ---
> RcIdentityBag(users) select: [ :each | each name := 'somename' ]
> —
Not sure if it’s just a typo, but it appears you’re trying to use assignment (
:= ) rather than comparison ( = ) so
Hi All,
Learning; Please bear with me.
Scenario:
1. Class>>User. InstVars: #(this that other userStatus userMeta)
2. Class>>UserManager (singleton). Instvars: users (RcIdentityBag: users)
When User is instantiated all its' instVars are populated correctly. Nested
objects as well.
To insert
Sorry for the later response. yes here too: resizing didn't cause problems.
Drastic work around :o) :
I have now installed Pharo 7.0 on my other Windows 10 PC,
Using the Pharo Launcher. **
Everything works ok, on my windows machine.
installed Seaside, my own app dev from .st fileins. etc.
Great!
Op 17-8-2019 om 12:33 schreef Richard
O'Keefe:
Good-oh.
Looking at
Bankaccounts
- the name should be
singular, not plural
- Smalltalk uses
baStudlyCaps
> Call it
BankAccount.
Good-oh.
Looking at Bankaccounts
- the name should be singular, not plural
- Smalltalk uses baStudlyCaps
> Call it BankAccount.
- you not only provide a getter for the
password, but a setter! This means that
malevolent/broken code can do
aBankAccount password: 'PWNED!'.
and then
Sorry, then a pointed to a wrong repo
this is the repo with smalltalk code :
https://github.com/rwobben/banking
Roelof
Op 17-8-2019 om 11:25 schreef Richard O'Keefe:
https://github.com
https://github.com/rwobben/bankaccount
points to a repository with C# code, so I cannot comment on the Smalltalk.
There is, however, a striking thing about the C# code, qua C#, that is
worth mentioning.
It is not encapsulated.
Let's start with the most obvious one.
A bank account has a password,
Op 17-8-2019 om 07:16 schreef Richard
O'Keefe:
What is the source of
the challenge?
Is there a version in
English?
I am having very
serious trouble trying to make sense of
"your bank accounts