Quantcast

[Bug 1589843] [NEW] Point by block without argument

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 1589843] [NEW] Point by block without argument

Hilaire Fernandes
Administrator
Public bug reported:

I will be handy to create a point by block with argument (no parent
ancestry):

canvas point: [1 @ 5 atRandom]

point: method is already used to create a point given its coordinates.
It is possible it handles block argument as well:

DrGeoCanvas>>point: aPointOrBlock
        self preProcessing.
        ^ aPointOrBlock isPoint
                ifTrue:  [self finalizePoint: (DrGPointFreeItem newWith: {aPointOrBlock})]
                ifFalse: [self finalizePoint: (DrGPointBlockItem newWith: (OrderedCollection with: aPointOrBlock) )]

** Affects: drgeo
     Importance: Undecided
         Status: Fix Committed


** Tags: smalltalk-sketch

--
You received this bug notification because you are a member of DrGeo
developers, which is subscribed to Dr. Geo II.
Matching subscriptions: Dr. Geo bug report
https://bugs.launchpad.net/bugs/1589843

Title:
  Point by block without argument

Status in Dr. Geo II:
  Fix Committed

Bug description:
  I will be handy to create a point by block with argument (no parent
  ancestry):

  canvas point: [1 @ 5 atRandom]

  point: method is already used to create a point given its coordinates.
  It is possible it handles block argument as well:

  DrGeoCanvas>>point: aPointOrBlock
  self preProcessing.
  ^ aPointOrBlock isPoint
  ifTrue:  [self finalizePoint: (DrGPointFreeItem newWith: {aPointOrBlock})]
  ifFalse: [self finalizePoint: (DrGPointBlockItem newWith: (OrderedCollection with: aPointOrBlock) )]

To manage notifications about this bug go to:
https://bugs.launchpad.net/drgeo/+bug/1589843/+subscriptions
Was this message helpful?
Tell us!
Loading...