So "at: x put: y" translates to a method named #at:put:(or "at:put:")?
|dict|
dict := Dictionary new.
dict at: 'foo' put: 'bar'.
So javascript equivalent would be(assuming the Dictionary object existed).
var dict;
dict = new Dictionary;
dict['at:put:']('foo', 'bar');
--
View this message in
I think the nub of your confusion is twofold. The method #at:put: is a
keyword method and it isn't right to think o them as two keys. It is one
compound key and unlike most every other system, Smalltalk keyword
message sends allow the programmer to name each argument. This is very
fine indeed.
I understand that it is a single message send, but to know how to handle the
message at runtime, the parser needs to somehow determine where the
implementation of that message is. It must do a lookup based on multiple
keys(at, and put), which is really confusing. "methods" are easy to look up
The message is "at:put:". It's a single message send. I encourage you to
try the ProfStef tutorial to understand the basis.
On Oct 16, 2016 01:17, "CodeDmitry" wrote:
> I am trying to do a JavaScript experiment to make Objects behave like
> Smalltalk objects.
>
>
I am trying to do a JavaScript experiment to make Objects behave like
Smalltalk objects.
example:
"reminder: Smalltalk arrays start at 1."
|arr|
a := Array new: 1.
a at: 1 put: 'Hello, World'.
Here, the Smalltalk array has a message "at: index put: value" which is
defined
Hi Paul,
May be SkipLists was included in Pharo images at the time I published the
package.
You can find it here:
http://www.squeaksource.com/skiplists
Cheers,
Hernán
2016-10-15 15:39 GMT-03:00 Paul DeBruicker :
> Hi Esteban,
>
> The config stops because the SkipLists
Hi Esteban,
The config stops because the SkipLists package isn't in the FuzzySearcher
repo and whatever repo it is in isn't set as the repository to look in. Do
you know what repo the SkipLists package is in?
Thanks
Paul
EstebanLM wrote
> Hi,
>
> you have a configuration there… I didn’t
Excellent suggestion! I shall look into it. Thanks.
--
View this message in context:
http://forum.world.st/The-Ultimate-Smalltalk-Tutorial-tp4918859p4918930.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Hello,
On Pharo4, when I type the command:
OSProcess waitForCommand: 'ls'
it locks the image, I can get back control with [Alt]-.
With the same image and VM, this command was previously working, even
called from a Seaside component.
Any idea?
Thanks
Hilaire
--
Dr. Geo
Hi Horrido
The tinyblog tutorial is a tutorial on build a real little web application.
We worked on it with Olivier and we decided to reuse an adpat it for the
mooc.
If you want to help what we are trying to do is the following (but I
need time hence you can help):
- take the mooc
10 matches
Mail list logo