Re: [Pharo-users] how to draw this Shape??

2013-06-30 Thread Clément Bera
I don't know how to do it with Polymorph. You can do it with Athens (by polishing this code) : surf := AthensCairoSurface extent: 100@100. surf drawDuring: [:can | surf clear. can setPaint: Color red. can drawShape: ( can createPath: [:path | path absolute; moveTo: 0@25; curveVia: 25@0 to: 50@

[Pharo-users] how to draw this Shape??

2013-06-30 Thread irfankhan1
Hello I am trying to draw a Valentine heart shape as shown below, Border of this shape should be dashed bordered. . I think this can be done by PolygonMorph class, no idea how . -- View this message in context: http://forum.

Re: [Pharo-users] ZdcSocketStream dnu #position

2013-06-30 Thread Stéphane Ducasse
https://pharo.fogbugz.com/default.asp?11088 On Jun 30, 2013, at 9:11 PM, Sven Van Caekenberghe wrote: > Hi Again, Paul, > > It was a typo ;-) > I added two new unit test as well. > > Here are the relevant commits: > > === > Name: Zinc-HTTP-SvenVanCaekenberghe.372 > Author: SvenVanCaekenberghe

Re: [Pharo-users] trait question

2013-06-30 Thread Tudor Girba
Hi, Theoretically, I could do the same for inheritance as well. But, that would be too complex for most cases, so it is the implicit behavior. To me, the decision for trait handling is similar. Cheers, Doru On Sun, Jun 30, 2013 at 2:54 PM, Camillo Bruni wrote: > On 2013-06-30, at 11:16, Sebas

Re: [Pharo-users] ZdcSocketStream dnu #position

2013-06-30 Thread Sven Van Caekenberghe
Hi Again, Paul, It was a typo ;-) I added two new unit test as well. Here are the relevant commits: === Name: Zinc-HTTP-SvenVanCaekenberghe.372 Author: SvenVanCaekenberghe Time: 30 June 2013, 9:06:10.101049 pm UUID: 98ea090f-27d4-498e-8111-95e954d010a9 Ancestors: Zinc-HTTP-SvenVanCaekenberghe.37

Re: [Pharo-users] ZdcSocketStream dnu #position

2013-06-30 Thread Sven Van Caekenberghe
Hi Paul, On 30 Jun 2013, at 19:38, Paul DeBruicker wrote: > Hi - > > I've got both Zinc and Zodiac loaded into a Pharo 2 image. When I do a > ZnClient #get: to an http connection I'm getting the dnu mentioned in > the subject of this email. > > > The message send that causes it is in ZnStrin

[Pharo-users] ZdcSocketStream dnu #position

2013-06-30 Thread Paul DeBruicker
Hi - I've got both Zinc and Zodiac loaded into a Pharo 2 image. When I do a ZnClient #get: to an http connection I'm getting the dnu mentioned in the subject of this email. The message send that causes it is in ZnStringEntity>>#readFrom: ZnNetworkingUtils default socketStreamClass prints: 'Z

[Pharo-users] Log4s is fixed

2013-06-30 Thread Donald
The new version 17 of log4s in ss3.gemstone works without the dependency on Benoits Bindings package. Feedback welcome. -- Donald [|] A bad day in [] is better than a good day in {}

Re: [Pharo-users] trait question

2013-06-30 Thread Stéphane Ducasse
On Jun 30, 2013, at 2:54 PM, Camillo Bruni wrote: > > uses: TMyOtherTrait

Re: [Pharo-users] trait question

2013-06-30 Thread Stéphane Ducasse
> > > But you know that you can do this right now? > > Object subclass: #Foo > uses: TMyTrait classTrait > > and the same on the class-side :/ > > Foo class > uses: TMyOtherTrait > instanceVariableNames: 'a b c' > > so from that

Re: [Pharo-users] trait question

2013-06-30 Thread Damien Cassou
On Sun, Jun 30, 2013 at 2:54 PM, Camillo Bruni wrote: > But you know that you can do this right now? I think these examples only show that some verifications are missing. I don't know any source code using that. To me it's more a bug than a feature. I would keep things simple: applying a trait t

Re: [Pharo-users] trait question

2013-06-30 Thread Camillo Bruni
On 2013-06-30, at 11:16, Sebastian Tleye wrote: > I also like this uniform because it's easier to program, > Up to now i haven't had the need to separate them. > > 2013/6/30 Tudor Girba >> +1 >> >> Keeping things uniform is a plus in this case, even though we might lose >> some flexibility. >>

Re: [Pharo-users] trait question

2013-06-30 Thread Sebastian Tleye
I also like this uniform because it's easier to program, Up to now i haven't had the need to separate them. 2013/6/30 Tudor Girba > +1 > > Keeping things uniform is a plus in this case, even though we might lose > some flexibility. > > Doru > > > On Sun, Jun 30, 2013 at 9:01 AM, Stéphane Ducass

Re: [Pharo-users] trait question

2013-06-30 Thread Tudor Girba
+1 Keeping things uniform is a plus in this case, even though we might lose some flexibility. Doru On Sun, Jun 30, 2013 at 9:01 AM, Stéphane Ducasse wrote: > Ok I slept and now my brain is working. > I think that having classTrait and trait together is important because > else it would be th

Re: [Pharo-users] PBE Suggestion: Minor improvement? to pharo.sh

2013-06-30 Thread Stéphane Ducasse
On Jun 30, 2013, at 6:12 AM, Kevin Cole wrote: > Hi, > > Given that I now have both the newer VM and image from the Ubuntu Pharo PPA, > and the VM and image from PBE, opening a file browser and clicking on an > image saved from PBE fails, because it wants to open the newer VM. Indeed. Better u

Re: [Pharo-users] Remove a dependency (was Re: How to do this in Pharo 2?)

2013-06-30 Thread Stéphane Ducasse
Hi donald you have to define a configurationOfLog4J by hand (soon there will be a tool) Have a look at the metacello chapter http://rmod.lille.inria.fr/pbe2/ You can look for example at the Soup project in PharoExtras on SmalltalkHub to get an example. Now for your problem apparently yo

Re: [Pharo-users] trait question

2013-06-30 Thread Stéphane Ducasse
Ok I slept and now my brain is working. I think that having classTrait and trait together is important because else it would be the mess when you have a class method that uses an instance methods (both define in a trait). So conceptually this is one trait like in smalltalk you have one class and