[Pharo-project] Bug in WAMemoryItemsizeOfObject

2012-03-15 Thread niko . schwarz
Hi guys, I haven't checked if this bug exists already, so please ignore this if it's been reported before. Bug in WAMemoryItem: sizeOfObject: anObject | headerSize instanceSize variableSize | headerSize := anObject class indexIfCompact 0 ifTrue: [ 4 ]

[Pharo-project] How can I find all objects that reference myObject?

2011-11-17 Thread niko . schwarz
Hi, How can I find all objects that reference myObject? http://stackoverflow.com/questions/8164418/how-can-i-find-all-objects-that-reference-myobject Niko -- http://scg.unibe.ch/staff/Schwarz twitter.com/nes1983 Tel: +41786126354

[Pharo-project] Symbolvalue:

2011-08-30 Thread niko . schwarz
Hi, Symbol responds to #value:, but not to #value:value:. At some point, Symbol and Block were decided to have the invocation protocol in common. I find this great. Therefore, I think, Symbol should also respond to #value:value:, as follows: value: anObject value: anotherObject ^

Re: [Pharo-project] Symbolvalue:

2011-08-30 Thread Niko Schwarz
I think it's important to have a consistent answer to the question: Can you treat symbols as blocks?. Niko On Tue, Aug 30, 2011 at 2:30 PM, Tudor Girba tu...@tudorgirba.com wrote: I proposed this some one or two years ago. I got shut down, but I still find it a good idea. And I even have a

Re: [Pharo-project] Symbolvalue:

2011-08-30 Thread Niko Schwarz
On Tue, Aug 30, 2011 at 3:59 PM, Sven Van Caekenberghe s...@beta9.be wrote: #+ value: 1 value: 2 1 perform: #+ with: 2 Note that the last two expressions are equally short/concise, the second being clearer. That is not a comparison worth making. The fair comparison is: [:a :b | a + b]

Re: [Pharo-project] Symbolvalue:

2011-08-30 Thread Niko Schwarz
persons inject: OrderedCollection new into: [:col :p | col copyWith: p] persons inject: OrderedCollection new into: #copyWith: Or this one: #(3 2 1) asSortedCollection: [:a :b | a = b] #(3 2 1) asSortedCollection: #=

Re: [Pharo-project] Symbolvalue:

2011-08-30 Thread niko . schwarz
You just inspired me to a block post on point-free programming :) http://smalltalkthoughts.blogspot.com/2011/08/point-free-programming-in-smalltalk.html Niko On 30.08.2011, at 16:57, HwaJong Oh wrote: I have similar definitions from symbol to block for SortedCollection like; #('3' '20'

Re: [Pharo-project] Symbolvalue:

2011-08-30 Thread Niko Schwarz
It's a question of consistency. Why support value:, but not value:value:? Niko On Tue, Aug 30, 2011 at 7:45 PM, Igor Stasenko siguc...@gmail.com wrote: On 30 August 2011 18:02, Douglas Brebner squeakli...@fang.demon.co.uk wrote: On 30/08/2011 13:30, Tudor Girba wrote: I proposed this some

Re: [Pharo-project] Phexample integrated with Autotest and OB (was ConfigurationOfPhexample (was #assert:equals: feels backwards))

2011-08-16 Thread niko . schwarz
Hi Sean! Phexample doesn't duplicate the logic of what is a change method, it changes it. The rational is to allow the user to choose a speaking test name, that accurately describes the test: shouldNicelyHandleNotifications And the like. Is this really in conflict with OB? Niko On

Re: [Pharo-project] posting etiquette - please post new text at the *top* of your email

2010-10-28 Thread Niko Schwarz
I remember that alright. On some Usenet groups you'd get stoned to death if you were to fullquote at the bottom. Postings like that we'd call TOFU in Germanglish: (Text oben, Fullquote unten), and it was a major offense to submit TOFU. And the holy scripture was RFC 1855

Re: [Pharo-project] posting etiquette - please post new text at the *top* of your email

2010-10-28 Thread Niko Schwarz
Markus, try to change the first line of the footer, which currently is ___ to -- \n Yes, including the space before the linebreak. Many email clients to this date will not quote what comes after this so-called sig separator. AAMOF, I advise everybody

Re: [Pharo-project] About Adding/modifying in SUnit or not?

2010-10-26 Thread Niko Schwarz
not only to run, but also to write tests on the official SUnit. This is crucial for projects like Seaside, Magritte, Pier, PetitParser, ... that are supposed to work on various other Smalltalk platforms. Lukas On 25 October 2010 15:51, Niko Schwarz niko.schw...@googlemail.com wrote: Yea

Re: [Pharo-project] akuhn/SUnit: run faster tests first step through tests

2010-10-25 Thread Niko Schwarz
and no real improvements. Stef On Oct 23, 2010, at 10:58 PM, Adrian Kuhn wrote: Sad to hear that. Technical difficulties, or just lack of customers? ^^ --AA On Oct 23, 2010, at 08:05 , Stéphane Ducasse wrote: It was too difficult to integrate. Stef On Oct 23, 2010, at 2:01 PM, Niko

Re: [Pharo-project] About Adding/modifying in SUnit or not?

2010-10-25 Thread Niko Schwarz
Yea, well, it depends on whether we want to be compatible with camp smalltalk's SUnit, as maintained by Niall Ross: http://sunit.sourceforge.net/devel.htm. Pharo already is using extensions, such as the possibility to mark tests as expected failures at all (that is impossible in standard SUnit).

Re: [Pharo-project] akuhn/SUnit: run faster tests first step through tests

2010-10-23 Thread Niko Schwarz
What's the status of akuhn/SUnit? I couldn't find his code in 1.2 core. Niko On Wed, Feb 3, 2010 at 1:13 PM, Stéphane Ducasse stephane.duca...@inria.fr wrote: this loads well in the latest 1,1 core :) so now we should really have a look and these cool changes Stef On Jan 6, 2010, at 2:38

Re: [Pharo-project] ExpectedFailures in SUnit

2010-10-23 Thread Niko Schwarz
progress. I still want to know the status of a test. what is red or not when it was packaged and shipped or is is my system the problem Stef On Oct 20, 2010, at 1:41 PM, Mariano Martinez Peck wrote: On Wed, Oct 20, 2010 at 12:15 PM, Niko Schwarz niko.schw...@googlemail.com wrote: Hi

[Pharo-project] ExpectedFailures in SUnit

2010-10-20 Thread Niko Schwarz
Hi, Currently, to mark a test as an expected failure, `expectedFailures` should be overwritten (http://stackoverflow.com/questions/3976596/how-to-mark-expected-failures-in-sunit). That's a bit tricky to figure out, so I added a comment to the method: SUnit-NikoSchwarz.114. However, I think it's

[Pharo-project] RefactoringcheckPreconditions behaves funny about the errorBlock

2010-10-04 Thread Niko Schwarz
Hi, The RB refactorings do some obscure dance around an errorBlock, which is always nil, as far as I can see. As I was trying to supply a non-nil error block, I was astonished to find out that even if it isn't nil, it won't be executed. Here's the relevant snippets: checkPreconditions |

Re: [Pharo-project] RefactoringcheckPreconditions behaves funny about the errorBlock

2010-10-04 Thread Niko Schwarz
, Niko Schwarz niko.schw...@googlemail.com wrote: Hi, The RB refactorings do some obscure dance around an errorBlock, which is always nil, as far as I can see. As I was trying to supply a non-nil error block, I was astonished to find out that even if it isn't nil, it won't be executed. Here's

Re: [Pharo-project] RefactoringcheckPreconditions behaves funny about the errorBlock

2010-10-04 Thread Niko Schwarz
the refactoring, e.g. ORCommand#handleError: Ok, the code is quite ugly, but this is how the original refactoring browser implemented it. On 4 October 2010 16:06, Niko Schwarz niko.schw...@googlemail.com wrote: Ok, help me out, how is that block ever invoked? The above code snippet just appends

Re: [Pharo-project] ('a' == 'a') == true ?

2010-09-28 Thread Niko Schwarz
Perhaps interestingly, in the original Self paper promoting mirrors, it was argued that one of the lessons learned of using mirrors in self was that '==' is really a reflective property, that should be accessible only through mirrors. That is because, whether or not two pointers are equal is

Re: [Pharo-project] ('a' == 'a') == true ?

2010-09-28 Thread Niko Schwarz
But that's the point, there should be no business semantics to '=='. Only reflective semantics. The reflective semantics are ok. Niko On Mon, Sep 27, 2010 at 11:51 AM, Johan Brichau jo...@inceptive.be wrote: On 27 Sep 2010, at 11:28, Igor Stasenko wrote: On 27 September 2010 11:54, Johan

Re: [Pharo-project] Load OB in Pharo 1.2

2010-08-24 Thread Niko Schwarz
Has this been resolved? I still get an error saying that PluggableButtonMorphPlus and OBPluggableButtonMorphPlus define homonymous instance variables. Niko On Wed, Aug 18, 2010 at 9:04 AM, Marcus Denker marcus.den...@inria.fr wrote: On Aug 17, 2010, at 11:16 PM, Lukas Renggli wrote: Or you

[Pharo-project] Instance variable pull up broken

2010-08-07 Thread Niko Schwarz
Here's a funny way to crash your image. Works in: Pharo-1.1-11367-Beta Latest update: #11367 Make a class named AbstractBla, with two subclasses: SubA, SubB. Then, add to both SubA and SubB the identically named instance variable: instVar. Now, use the pull up refactoring in OmniBrowser on SubA

Re: [Pharo-project] Instance variable pull up broken

2010-08-07 Thread Niko Schwarz
On 7 August 2010 22:18, Niko Schwarz niko.schw...@googlemail.com wrote: Here's a funny way to crash your image. Works in: Pharo-1.1-11367-Beta Latest update: #11367 Make a class named AbstractBla, with two subclasses: SubA, SubB. Then, add to both SubA and SubB the identically named instance

Re: [Pharo-project] ReadWriteStream contents fails

2010-06-11 Thread Niko Schwarz
I got confused about this because of what printString shows. At least printString could show what is intended to be in the stream, not more. Niko 2010/6/11 Henrik Sperre Johansen henrik.s.johan...@veloxit.no: On 05.06.2010 15:30, Niko Schwarz wrote: Hi list, http://code.google.com/p/pharo

Re: [Pharo-project] Question about String

2010-06-09 Thread Niko Schwarz
Depends on who you ask. Your standard Windows developer will say it's 4, your standard Unix believer will say it's 3 (because in Unix text files always end in a newline. And String cr is used roughly like Unix \n, although it's another character.) Niko 2010/6/9 Fabrizio Perin

Re: [Pharo-project] Three current versions: 1.0, 1.1, 1.2

2010-06-09 Thread Niko Schwarz
On Wed, Jun 9, 2010 at 9:29 AM, Adrian Lienhard a...@netstyle.ch wrote: Also, people who know there is something that really needs to be fixed for a 1.1 release should speak up now. I think http://code.google.com/p/pharo/issues/detail?id=2469 should be integrated before 1.1. I remember how

[Pharo-project] Three current versions: 1.0, 1.1, 1.2

2010-06-08 Thread Niko Schwarz
I hear that we're working on 1.2 now. But pharo-project.org still hands out 1.0 versions to everyone who asks. So we'll get plenty of bug reports for 1.0. I think we should switch over to 1.1 on the home page soon. Niko -- http://scg.unibe.ch/staff/Schwarz twitter.com/nes1983 Tel: +41 076

Re: [Pharo-project] [BUG] VM crash during debbuging some code by Through button with Transcriptshow: in deepest inner methods

2010-06-08 Thread Niko Schwarz
We've further improved on the issue in http://code.google.com/p/pharo/issues/detail?id=2469. It's committed to the inbox, now. Niko On Tue, May 25, 2010 at 10:34 PM, Stéphane Ducasse stephane.duca...@inria.fr wrote: thanks a lot denis for checking that. I should say thatI'm quite busy right

Re: [Pharo-project] Three current versions: 1.0, 1.1, 1.2

2010-06-08 Thread Niko Schwarz
Of course not. Just switch the default download (the big one, all over the site) site to 1.1. I just suggest to switch from 1.0 to 1.1 as stable at the same time that we switch from 1.1 to 1.2 for development. Then we never have 3 current versions at once. Cheers, Niko --

[Pharo-project] Auto-Completion in the debugger

2010-06-08 Thread Niko Schwarz
Hi, Why is the auto-completion in the dev images so stupid in the debugger? Why is it wildly guessing around in a debugger, where the type of all variables is well known? I'm using a 1.1 beta image (non-core): http://gforge.inria.fr/frs/download.php/27025/Pharo-1.1-11367-Betadev10.05.1.zip.

Re: [Pharo-project] Auto-Completion in the debugger

2010-06-08 Thread Niko Schwarz
2010/6/8 Mariano Martinez Peck marianop...@gmail.com: Maybe you should be more polite in order to receive better feedback. I'll work on it. I wasn't sure if the feature's missing or whether I'd done something wrong. Cheers, Niko -- http://scg.unibe.ch/staff/Schwarz twitter.com/nes1983 Tel:

Re: [Pharo-project] Auto-Completion in the debugger

2010-06-08 Thread Niko Schwarz
Hmm, not right now, but I'll add it to my someday/maybe list :) Thanks for the offer! Cheers, Niko On Tue, Jun 8, 2010 at 5:44 PM, Romain Robbes romain.rob...@gmail.com wrote: I'll work on it. I wasn't sure if the feature's missing or whether I'd done something wrong. Hi Niko, Indeed,

Re: [Pharo-project] Auto-Completion in the debugger

2010-06-08 Thread Niko Schwarz
Done: http://code.google.com/p/pharo/issues/detail?id=2524 2010/6/8 Mariano Martinez Peck marianop...@gmail.com: On Tue, Jun 8, 2010 at 5:50 PM, Niko Schwarz niko.schw...@googlemail.com wrote: Hmm, not right now, but I'll add it to my someday/maybe list :) You can also add

Re: [Pharo-project] About TDD and Pharo

2010-06-07 Thread Niko Schwarz
I think the rationale must be: during TDD it's ok to ask the developer questions that he can answer right away. Thus, it's ok that the create button asks for the class: you know instantly what to answer. But asking for the method category is a major pain. I don't know about y'all, but I never

[Pharo-project] A more concise array access (using negative indices)

2010-06-07 Thread Niko Schwarz
Hi guys, Am I the only one who finds the ruby protocol for accessing collections richer at times? In Smalltalk, if ary is an array, how do I get ary without its last element? In Ruby, it's dead easy: ary[0..-2]. I can do that by heart after not having done any serious Ruby in a long time. In

Re: [Pharo-project] A more concise array access (using negative indices)

2010-06-07 Thread Niko Schwarz
On Mon, Jun 7, 2010 at 3:23 PM, Stéphane Ducasse stephane.duca...@inria.fr wrote: yes this one looks good. but        copyFrom: 1 to: does not convey that you should pass the second argument starting reverse. Well, in ruby it's a general convention that negative indices start counting from

Re: [Pharo-project] [JOB] We are Looking for a Pharo Engineer

2010-06-07 Thread Niko Schwarz
Is there a website with this text that I can link to? Niko On Mon, Jun 7, 2010 at 3:48 PM, Marcus Denker marcus.den...@inria.fr wrote: Hello, INRIA RMOD is looking for a full-time engineer for helping with Pharo development. As researchers, we need a really great system to explore new

Re: [Pharo-project] About TDD and Pharo

2010-06-07 Thread Niko Schwarz
: it is true, I almost all the time cancel that dialog to put the method as not yet categorized... but sometimes I select the category... I think that pressing ESC or cancel is not that bad in this case and I would keep this dialog. On Mon, Jun 7, 2010 at 5:45 AM, Niko Schwarz niko.schw

Re: [Pharo-project] A more concise array access (using negative indices)

2010-06-07 Thread Niko Schwarz
Well, I'm just arguing that in Ruby, the simple convention that negative indices start from left to right map to a zoo of different methods in Smalltalk. You didn't comment on: ('hello' from: 2 toFromEnd: 2) should = 'ell' Would that find your blessing? niko On Mon, Jun 7, 2010 at 6:59 PM,

Re: [Pharo-project] A more concise array access (using negative indices)

2010-06-07 Thread Niko Schwarz
On Mon, Jun 7, 2010 at 9:30 PM, Hilaire Fernandes hilaire.fernan...@gmail.com wrote: Niko Schwarz a écrit : Just to put something on the table, how about: (ary at: 1, -2) Or #at: could accept an interval as argument ___ Pharo-project mailing list

Re: [Pharo-project] About TDD and Pharo

2010-06-07 Thread Niko Schwarz
Why not offer not yet categorized as the first option as a category to choose from? Niko 2010/6/7 Gabriel Brunstein gab...@gmail.com: maybe the right name would be something like don´t categorize  ;) On Mon, Jun 7, 2010 at 11:54 AM, Niko Schwarz niko.schw...@googlemail.com wrote: Right

Re: [Pharo-project] A more concise array access (using negative indices)

2010-06-07 Thread Niko Schwarz
On Mon, Jun 7, 2010 at 10:29 PM, Ramon Leon ramon.l...@allresnet.com wrote:  Ruby seems to have a style where you can send just about anything to a method and it tries to figure out what to do based on the type of the arg, they like magic and the smaller API; Smalltalk tends to just have a

Re: [Pharo-project] About TDD and Pharo

2010-06-07 Thread Niko Schwarz
I listed this behavior as http://code.google.com/p/pharo/issues/detail?id=2522 Cheers, Niko On Mon, Jun 7, 2010 at 10:04 PM, Niko Schwarz niko.schw...@googlemail.com wrote: Why not offer not yet categorized as the first option as a category to choose from? Niko 2010/6/7 Gabriel Brunstein

[Pharo-project] ReadWriteStream contents fails

2010-06-05 Thread Niko Schwarz
Hi list, http://code.google.com/p/pharo/issues/detail?id=2508can=4colspec=ID%20Type%20Status%20Summary%20Milestone%20Difficulty The following mini unit test fails: readWriteStreamShouldHonorStartIndex self assert: ( (ReadWriteStream on: 'hallo' from: 3 to: 4) contents = 'll') Instead,

[Pharo-project] haltIfShiftPressed

2010-06-05 Thread Niko Schwarz
Hi list, http://code.google.com/p/pharo/issues/detail?id=2510can=4colspec=ID%20Type%20Status%20Summary%20Milestone%20Difficulty I suggest the following snippet in object to ease debugging: ObjecthaltIfShiftPressed self haltIf: [Sensor shiftPressed] Pharo image: core Pharo core version:

Re: [Pharo-project] haltIfShiftPressed

2010-06-05 Thread Niko Schwarz
Seriously, I think the method should be called h. Just that. Nobody's going to type a method name as long as haltIfShiftPressed for debugging. Debugging is not about readability. Cheers, Niko On Sat, Jun 5, 2010 at 3:31 PM, Niko Schwarz niko.schw...@googlemail.com wrote: Hi list, http

[Pharo-project] CompiledMethod asString is a text

2010-03-31 Thread Niko Schwarz
Hi, I just bumped into this. Probably this is intended somehow, but it does seem weird enough to ask … (Object #hash) asString class returns 'Text'. Cheers, Niko -- http://scg.unibe.ch/staff/Schwarz twitter.com/nes1983 Tel: +41 076 235 8683

[Pharo-project] PluggableSet and KeyedSet serve the same purpose

2010-03-13 Thread Niko Schwarz
Hi list, the purpose of PluggableSet and KeyedSet is the same: they're both sets where the equivalence relation is overwritten by a block. One of the two should be removed. What do you think? Cheers, Niko -- http://scg.unibe.ch/staff/Schwarz twitter.com/nes1983 Tel: +41 076 235 8683

Re: [Pharo-project] New pharo images

2009-12-07 Thread Niko Schwarz
The alpha image runs into a deprecation warning, caused by Preferences classannotationPanes, called by OBSystemBrowser class(OBCodeBrowser class)annotationPanel as soon as you open a browser. Cheers, Niko On Mon, Dec 7, 2009 at 10:08 AM, Damien Cassou damien.cas...@gmail.com wrote: Based on

Re: [Pharo-project] pharo and db support

2009-11-30 Thread Niko Schwarz
to run just fine right now. and thanks for having suggested it! ;-) On 29 Nov 2009, at 13:26, Niko Schwarz wrote: Glad to hear it :). Is it really faster than Magma in your experience? Cheers, Niko On Sun, Nov 29, 2009 at 11:11 AM, Johan Brichau johan.bric...@uclouvain.be wrote: We

Re: [Pharo-project] Where to put removed stuff?

2009-11-30 Thread Niko Schwarz
On Stackoverflow someone asked what to do with good code which isn't needed anymore. This was the answer: blockquoteAs an answer, please consider this short story: The dead code Collector: Bring out yer dead code. Man with dead code : Here's one. The dead code Collector: That'll be ninepence.

Re: [Pharo-project] pharo and db support

2009-11-29 Thread Niko Schwarz
Glad to hear it :). Is it really faster than Magma in your experience? Cheers, Niko On Sun, Nov 29, 2009 at 11:11 AM, Johan Brichau johan.bric...@uclouvain.be wrote: We are using GOODS for a while now and it runs pretty well. I have added it to the wikipage. On 26 Nov 2009, at 17:39, Tudor

Re: [Pharo-project] why we should kill project

2009-11-10 Thread Niko Schwarz
Tee hee, cool beans guys :) Niko On Tue, Nov 10, 2009 at 6:32 PM, Stéphane Ducasse stephane.duca...@inria.fr wrote: It is a pearl! may be a joke for geek but I love it. STef ((Project class parseTreeFor: #mostRecent:onServer:) allChildren       reject: [ :each | each isVariable ])      

[Pharo-project] Compiler compile:

2009-11-03 Thread Niko Schwarz
Hi list, consider this code: c := Compiler compile: 'meth bla ^ 2'. Here, c will be set to the symbol #meth. And Compiler will be added a new method meth. This is of course counter-intuitive, but it's kind of wired into the system. Behaviorcompile: does certainly more than compile. It

Re: [Pharo-project] Compiler compile:

2009-11-03 Thread Niko Schwarz
. And of course, compiler should answer an instance of compiled method 2009/11/3 Niko Schwarz niko.schw...@googlemail.com: Hi list, consider this code: c := Compiler compile: 'meth bla ^ 2'. Try using c:= Compiler new     compiledMethodFor: ... The class-side #compile:... method

[Pharo-project] displayWorldAsTwoTone

2009-10-30 Thread Niko Schwarz
Hi list, sending displayWorldAsTwoTone to the global PasteUpMorph does not turn my screen black and white. That is because WorldState does not respond to #displayWorldAsTwoTone, as PasteUpMorphdisplayWorldAsTwoTone expects. Cheers, Niko

[Pharo-project] How to make Pharo produce random garbage bytes

2009-10-28 Thread Niko Schwarz
Hi list, I learned something fun today from a friend, how to make Pharo produce random garbage! Make a class AC which is defined as: Object subclass: #AC instanceVariableNames: 'a' classVariableNames: '' poolDictionaries: '' category: 'OB-Standard-Browsers' Then you

Re: [Pharo-project] NewCompiler for pharo?

2009-10-27 Thread Niko Schwarz
Hi Stef, On Sun, Oct 25, 2009 at 10:37 PM, Stéphane Ducasse stephane.duca...@inria.fr wrote: - is there a way to get something compiled in between? Two of us use the ThothCompiler in the mean time, which supports all the source code transformations of the NewCompiler, because it features the

Re: [Pharo-project] [update] #10492 (1.0rc1)

2009-10-27 Thread Niko Schwarz
. Adrian On Oct 24, 2009, at 10:46 , Stéphane Ducasse wrote: Thanks niko So does everybody agree with      asNumber raising an error      and      squeezeOutNumber I like the proposal. Stef On Oct 24, 2009, at 10:30 AM, Niko Schwarz wrote: Hi all, I made a follow-up patch like discussed

[Pharo-project] OCompletion in the rc1 dev image

2009-10-27 Thread Niko Schwarz
Hi list, in the most recent dev image (9.10.5), OCompletion is broken for me. I lost my reproducible test case, but the gist was that sometimes when OCompletion had no idea which type a temporal variable would be, you were unable to insert code behind that variable, because if you tried, a

Re: [Pharo-project] [update] #10492 (1.0rc1)

2009-10-27 Thread Niko Schwarz
. stef On Oct 27, 2009, at 2:38 PM, Niko Schwarz wrote: Well, what do you propose? Deprecating asNumber calls altogether? Cheers, Niko On Sat, Oct 24, 2009 at 10:32 AM, Stéphane Ducasse stephane.duca...@inria.fr wrote: Yes a good deprecation is needed. Stef On Oct 24, 2009, at 11:13 AM

Re: [Pharo-project] OCompletion in the rc1 dev image

2009-10-27 Thread Niko Schwarz
before the latest version of OCompletion is used instead of the older one. Cheers,        Romain On Oct 27, 2009, at 3:07 PM, Niko Schwarz wrote: Hi list, in the most recent dev image (9.10.5), OCompletion is broken for me. I lost my reproducible test case, but the gist was that sometimes

Re: [Pharo-project] OCompletion in the rc1 dev image

2009-10-27 Thread Niko Schwarz
By the way, what is the proper way to propose changes to the dev image script? On Tue, Oct 27, 2009 at 3:57 PM, Niko Schwarz niko.schw...@googlemail.com wrote: My image is indeed still on version damiencassou.33. I marked the bug as 1.0 in the bugtracker (http://code.google.com/p/pharo/issues

Re: [Pharo-project] [update] #10492 (1.0rc1)

2009-10-24 Thread Niko Schwarz
Hi all, I made a follow-up patch like discussed on the workshop. Now porting becomes as easy as changing asNumber to squeezeOutNumber. Name: SLICE-issue-1258-squeezeOutNumber-NikoSchwarz.2 This slice adds squeezeNumberOutOfString: to Number, as discussed in the Pharo workshop. On the way, it

[Pharo-project] Stack re-implemented

2009-10-21 Thread Niko Schwarz
Hi list, issue 1336 proposes re-implementing Stack using the new LinkedList which can take arbitrary objects. I committed the code and it was really straightforward to do. Now stack is implemented in 3 one-line methods, removing about 10 methods, and removing one class (StackLink). Please see

Re: [Pharo-project] feedback about the new inspector

2009-10-21 Thread Niko Schwarz
Hi Johan, On 21.10.2009, at 18:39, Johan Brichau wrote: I also understood from Niko on monday that he is working on an alternative inspector that very much ressembles the one from Visualworks. Yes, with Toon Verwaest, it should get ready on the weekend. :) Niko

[Pharo-project] Clean up the #sort: and sortBy: mess.

2009-10-20 Thread Niko Schwarz
Hi list, this is a copy of a proposal that I dumped into the bugtracker as http://code.google.com/p/pharo/issues/detail?id=1346. An OrderedCollection returns a copy on #sortBy:, while an ArrayedCollection returns a changed self on #sort:. ArrayedCollection does understand #sortBy:, while

[Pharo-project] Immutable strings

2009-10-19 Thread Niko Schwarz
Hello list! I would like to propose the compiler spit out immutable strings as string literals. I'd like to do this by making a subclass of classical strings which throws error messages when it is attempted to change the string. The beginning of this discussion happened in the bug tracker,

Re: [Pharo-project] [ANN] Pharo Core 1.0rc1

2009-10-19 Thread Niko Schwarz
That was me, it comes from Squeak trunk. I didn't test it, because it looked so harmless and works in Squeak … I'm sorry. It should be sortBy: rather than sort: niko On Mon, Oct 19, 2009 at 7:06 PM, Michael Roberts m...@mjr104.co.uk wrote: MCMergeBrowsermerger:        conflicts := aMerger

Re: [Pharo-project] [ANN] Pharo Core 1.0rc1

2009-10-19 Thread Niko Schwarz
I clicked around for some time now but I can't trigger that method to test it properly this time. It isn't called on conflicts, it isn't called on merges. What do you need to do to get that method executed artificially? Niko On Mon, Oct 19, 2009 at 8:48 PM, Niko Schwarz niko.schw

Re: [Pharo-project] [ANN] Pharo Core 1.0rc1

2009-10-19 Thread Niko Schwarz
... Nicolas 2009/10/19 Niko Schwarz niko.schw...@googlemail.com: That was me, it comes from Squeak trunk. I didn't test it, because it looked so harmless and works in Squeak … I'm sorry. It should be sortBy: rather than sort: niko On Mon, Oct 19, 2009 at 7:06 PM, Michael Roberts m...@mjr104

[Pharo-project] Fix for issue 1258

2009-10-17 Thread Niko Schwarz
In Pharo, '.1' = 0 evaluates to true. In the bug tracker, it was proposed to change this to an error being raised, which I implemented: http://code.google.com/p/pharo/issues/detail?id=1258 Cheers, Niko ___ Pharo-project mailing list

[Pharo-project] TabGroupMorph does not show the labels of the tabs

2009-10-17 Thread Niko Schwarz
Consider this code: w := SystemWindow labelled: 'LatestInspector'. t := TabGroupMorph new addPage: (RectangleMorph new color: Color green ) label: 'Instance' ; addPage: (RectangleMorph new color: Color red) label: 'Methods' . w openInWorld w addMorph: t fullFrame:

[Pharo-project] Follow us on twitter!

2009-10-17 Thread Niko Schwarz
You can follow our progress on twitter! Just open this page: http://twitter.com/#search?q=%23pharolille We're using the twitter tag #Pharolille niko ___ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr

Re: [Pharo-project] Follow us on twitter!

2009-10-17 Thread Niko Schwarz
Just for context, I'm referring to the Pharo Sprint in Lille, taking place today. We're already 12 sprinters. On Sat, Oct 17, 2009 at 1:20 PM, Niko Schwarz niko.schw...@googlemail.com wrote: You can follow our progress on twitter! Just open this page: http://twitter.com/#search?q

Re: [Pharo-project] _ into := changes based on RB

2009-10-17 Thread Niko Schwarz
Shouldn't my incredible ThothCompiler allow that? http://smalltalkthoughts.blogspot.com/2009/09/introducing-thothcompiler.html niko On Sat, Oct 17, 2009 at 1:31 PM, Lukas Renggli reng...@gmail.com wrote: -=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=- rule :=

Re: [Pharo-project] _ into := changes based on RB

2009-10-17 Thread Niko Schwarz
That's because you're using the latest Pharo. YOU changed the old AST, and removed a method called null that I'm calling. I'll update ThothCompiler tonight. cheers, niko On Sat, Oct 17, 2009 at 3:38 PM, Stéphane Ducasse stephane.duca...@inria.fr wrote: I get a DNU rule does not know open. On

[Pharo-project] Suggest a change to PluggableListMorph

2009-07-04 Thread Niko Schwarz
Hello! Typing a burst into a pluggable list morph results in a behaviour quite remote from e.g. Finder. E.g. typing the same key twice will go to the next match. I suggest changing the behaviour to make it resemble the behaviour that a user may anticipate more closely. I submitted a fix for the