Re: [Pharo-users] Hmmm sending at:put: to an undefined object (nil) gives a confusing error message

2019-03-11 Thread Richard O'Keefe
I understand #basicAt:[put:] being in Object, but I never understood #at:[put:] being there. GNU Smalltalk: st> nil at: 1 Object: nil error: Invalid value nil: object not indexable In my Smalltalk, you get a DNU. In Squeak you get a debugger window with title Error: instances of UndefinedObject

[Pharo-users] Calypso openOnGroup?

2019-03-11 Thread Hernán Morales Durand
Hi, Is there any way to open a browser on a method group in Claypso? This was possible in Nautilus: Smalltalk tools browser openOnCategory: #compiling ofClass: Class Cheers, Hernán

[Pharo-users] Hmmm sending at:put: to an undefined object (nil) gives a confusing error message

2019-03-11 Thread Tim Mackinnon
If you forget to initialise a variable which you thought was a Dictionary - you get a confusing error message: "Error: only integers should be used as indices” if you try an at:put: This is a consequence of having at:put: defined on Object (which is a bit nasty) Should UndefinedObject at least

Re: [Pharo-users] Pharo OSX bundle in Mojave - how to sign ? (Was Re: OS X bundle, some progress)

2019-03-11 Thread Hilaire
Hi, Today I realized another problem on some Mac OSX. It looks like when you download an app on the net, whenever your run it, OS X re-localizes it on a read only location. A guess a protection measure. It leads to obvious problem. For example, once I download DrGeo and run it, the image

Re: [Pharo-users] Pharo and FPGA

2019-03-11 Thread Noury Bouraqadi
Hi Norbert, The PhD of Sang (in CC) was about FPGA and Smalltalk. https://lxsang.me/ Noury > On 9 Mar 2019, at 15:31, Norbert Hartl wrote: > > I’m trying to collect information about programming in pharo for FPGA. The > only things I found are around PharoROS like this [1]. If anyone has

Re: [Pharo-users] complex json parsing.

2019-03-11 Thread Ben Coman
On Mon, 11 Mar 2019 at 14:35, Roelof Wobben wrote: > Op 11-3-2019 om 00:03 schreef Ben Coman: > > collectionUrl := > > ' > https://www.rijksmuseum.nl/api/nl/collection?key=14OGzuak=json=schilderij=True > '. > > json := NeoJSONReader fromString: (ZnEasy get: collectionUrl) > > contents. > >

Re: [Pharo-users] complex json parsing.

2019-03-11 Thread Roelof Wobben
Op 11-3-2019 om 00:03 schreef Ben Coman: collectionUrl :=  'https://www.rijksmuseum.nl/api/nl/collection?key=14OGzuak=json=schilderij=True'.     json := NeoJSONReader fromString: (ZnEasy get: collectionUrl) contents.     paintings := Paintings fromJSON: json. Thanks a lot , Ben I almost