[Pharo-dev] [NativeBoost] Calling a function in a struct

2015-02-21 Thread Max Leske
Hi. I have a situation with libgit2 where the function I need to call is a field in a struct (the field gets populated with different functions with the same signature depending on certain conditions). I’m facing two problems now: 1. how do I define a function as the field type of an

Re: [Pharo-dev] [NativeBoost] Calling a function in a struct

2015-02-21 Thread Nicolai Hess
2015-02-22 0:06 GMT+01:00 Max Leske maxle...@gmail.com: Hi. I have a situation with libgit2 where the function I need to call is a field in a struct (the field gets populated with different functions with the same signature depending on certain conditions). I’m facing two problems now: 1.

Re: [Pharo-dev] #fromFileNamed: seems too UNIX-y

2015-02-21 Thread Sven Van Caekenberghe
On 21 Feb 2015, at 04:02, Sean P. DeNigris s...@clipperadams.com wrote: Sven Van Caekenberghe-2 wrote But convenience and clean separation of responsibilities sometimes conflict (I mean, do all these object even have to know about files ?) Good point! But what do we do? The logic is too

Re: [Pharo-dev] Protocols, Privacy, and Extensions - NOT One Big Happy Family

2015-02-21 Thread stepharo
Camille proposed and implemented a module system in which extensions are local to the packages. Now putting it in production requires some work. Stef It will be fun to have these concepts distinguished on their own some day :) How do I create a form from a file? Let's check the instance

[Pharo-dev] If you want to flex your brain and do useful stuff for the world in Smalltalk

2015-02-21 Thread Yuriy Tymchuk
http://rosettacode.org/wiki/Reports:Tasks_not_implemented_in_Smalltalk

Re: [Pharo-dev] If you want to flex your brain and do useful stuff for the world in Smalltalk

2015-02-21 Thread Peter Uhnák
Interesting list! Btw. didn't Natalia made this already http://rosettacode.org/wiki/Voronoi_diagram ? On Sat, Feb 21, 2015 at 6:31 PM, Yuriy Tymchuk yuriy.tymc...@me.com wrote: http://rosettacode.org/wiki/Reports:Tasks_not_implemented_in_Smalltalk

Re: [Pharo-dev] If you want to flex your brain and do useful stuff for the world in Smalltalk

2015-02-21 Thread Natalia Tymchuk
)) It’s not the same. They are finding to which point which pixel is the closest. I want to get the polygons. On 21 Feb 2015, at 19:30, Peter Uhnák i.uh...@gmail.com wrote: Interesting list! Btw. didn't Natalia made this already http://rosettacode.org/wiki/Voronoi_diagram

Re: [Pharo-dev] If you want to flex your brain and do useful stuff for the world in Smalltalk

2015-02-21 Thread Peter Uhnák
On second thoughts I'm unsure of any practical uses of this site since they make quite arbitrary tasks. E.g. CSV data manipulation: ... authors may assume that the data fields contain no commas, backslashes, or quotation marks That is for most practical purposes quite useless... or handwriting

Re: [Pharo-dev] If you want to flex your brain and do useful stuff for the world in Smalltalk

2015-02-21 Thread Yuriy Tymchuk
I guess that the point is to implement some common things in different languages, so one can compare them or learn other language based on that one he/she knows. Uko On 21 Feb 2015, at 19:44, Peter Uhnák i.uh...@gmail.com wrote: On second thoughts I'm unsure of any practical uses of this

Re: [Pharo-dev] Example implementation of associations with Slots in Pharo 4.0

2015-02-21 Thread stepharo
Hi Jan Excellent! We know exactly whay we want slots and this is exactly for such kind of extensions. you may want to read the paper of Kasper Osterbye http://itu.dk/people/kasper/cv.htm R.11 Kasper Østerbye. Associations as a Language Construct. In Proceedings of TOOLS 29, Ed. Richard

Re: [Pharo-dev] Why was #asLegalSelector removed?

2015-02-21 Thread stepharo
Le 20/2/15 15:59, Sean P. DeNigris a écrit : As you know, I love cleaning ;) But... stepharo wrote https://github.com/pharo-project/pharo-workingRoadmaps/blob/master/StringCleaning.md What enlightenment am I supposed to gain from candidates for removal... asLegalSelector, and later Done:

[Pharo-dev] Example implementation of associations with Slots in Pharo 4.0

2015-02-21 Thread Jan van de Sandt
Today I experimented a little with the new Slots feature of Pharo 4.0. As an example I implemented support for associations/relationships. With it you can link two slots together so an update on one side will also update the other side of the association/relationship. I used these Movie and