>
> There is any other way I can help with debugging this? Should I open a bug
> report to get this solved on Roassal?
>
This is best directed at Alex, but I would think that the solution should
be pretty straight forward (maybe just copying part of the solution between
the exporters).
Alex: could
Why does CodeCritic (QualityAssistant) considers this questionable
canBeTargetFor: aController
^ aController isKindOf: DMNodeController
and yet this seems fine to him
canBeTargetFor: aController
^ aController class = DMNodeController
~~~
Hi,
is there a simple way to add certain rule as ignored? Something like "right
click -> supress rule"
I am working on tools that do use metaprogramming, so it tends to complain,
and for example in roassal there is a common pattern
element := RTBox new size: 50; elementOn: 'sth'.
But that of cours
od, so if the
> other developer will read your code he can also se the you’ve skipped the
> rule on porpoise and it’s a planned decision.
>
> Cheers!
> Uko
>
> > On 25 Apr 2015, at 09:50, Peter Uhnák wrote:
> >
> > Hi,
> >
> > is there a simple way to
Indeed, I always run this script to get in Pharo 4
~~~
"=== Roassal presentations ==="
Gofer new
smalltalkhubUser: 'Moose' project: 'GToolkit';
package: 'GT-InspectorExtensions-CoreRoassal';
load.
Gofer new
smalltalkhubUser: 'Moose' project: 'Glamour';
package
-show-the-RTView-td4821824.html
Peter
On Sat, Apr 25, 2015 at 8:56 PM, Yuriy Tymchuk wrote:
> Is it only me, or as GTInspector is a part of Pharo 4, configuration of
> roassal should load the presentation and not something from outside?
>
>
> On 25 Apr 2015, at 19:23, Pet
Hi,
is it possible to catch pressed key in RubTextFieldArea?
I tried
~~~
|fieldArea|
fieldArea := RubTextFieldArea new
takeKeyboardFocus.
fieldArea announcer when: RubKeystroke do: [ :rbEvent | rbEvent inspect ].
fieldArea openInWindow.
but it doesn't seem
26 Apr 2015 10:21:25 +0200
> Subject: Re: [Pharo-users] Rubric RubKeystroke
>
> I’ve opened an issue 15407 <https://pharo.fogbugz.com/default.asp?15407>
> try with Rubric-AlainPlantec.188 which should fixe it (in Pharo/Rubric).
> Cheers
> Alain
>
>
> On 25 Apr 2015, at 22
Sometimes people also post on StackOverflow and then send link to mailing
list. SO is generally oriented more on concrete problems and solutions...
e.g. "How do I sort a collection?". General discussions, debates, opinions
and other are discouraged and downvoted — it doesn't belong there; so best
a
I don't know the current state of things, but when I was using it I had
some issues so this may or may not be relevant to you:
http://forum.world.st/moving-to-git-and-preserving-monticello-history-td4806386.html#a4806611
Peter
On Tue, Apr 28, 2015 at 10:36 PM, Yuriy Tymchuk
wrote:
> Hi,
>
> her
Is it possible to invert the colors of a Athens Canvas?
After some digging I found paintMode and paintTransform; however the former
doesn't support such method (maybe some combination of xor and over?); and
the former is only for some specific colors.
I also tried changing
Color>>asAthensPaintOn:
s Diagram'; parent:
#MostUsedTools; action: [ self openEmpty ];
Peter
On Wed, Apr 15, 2015 at 10:32 AM, Nicolai Hess wrote:
> Hi Peter,
>
> 2015-04-09 21:20 GMT+02:00 Peter Uhnák :
>
>> Is there some common / best way for coding builde
Thanks Nicolai!
I should've tried all the paint modes before asking. -_-
Peter
On Fri, May 1, 2015 at 8:32 PM, Nicolai Hess wrote:
>
>
> 2015-05-01 17:50 GMT+02:00 Werner Kassens :
>
>> Hi Peter,
>> at the morphic level you might eventually look at ColorMappingCanvas and
>> make a subclass.
>>
Hi,
how is set the background color of a morph?
I could access directly "Smalltalk ui theme backgroundColor" from within
the Morph,
but I don't see anywhere that something is using themed colors this way.
So I assume there is some other way; what am I missing?
Note that I don't want to use the c
Thank's for the pointers. It seems to me that they access it via 'self
theme'; in any case my problem is, for the moment, solved.
Thanks,
Peter
On Fri, May 1, 2015 at 11:11 PM, Nicolai Hess wrote:
>
>
> 2015-05-01 22:22 GMT+02:00 Peter Uhnák :
>
>> Hi,
>>
It seems to me that Smalltalkers are not very fond of constructors and I
can't comprehend why.
If for example I want to create object X that _needs_ object Y, then I
would have to make a Y accessor.
X>>y: anY
y := anY
but this makes no sense as I can still change the `y` object at later date
>
> Yes but, 'self theme' is 'the theme engine that defines all theme
> settings' and
> 'self theme backgroundColor' is
> 'what this theme defines as general backgroundColor'
> It does not mean that self (the morph) is actually using this theme
> setting for anything.
>
> I know, I don't care if th
As I have discovered recently I quite regularly have large images (500+
MB); the reason seems to be combination of memory leaks, Roassal (maybe
Athens), GUI, and a LOT of saving while having all those things opened. But
Image cleanup tends to shrink it back to tens of megabytes.
Personally I don't
You can also use this utility to simplify generation of the array.
http://smalltalkhub.com/#!/~peteruhnak/IconFactory
Peter
On Fri, May 15, 2015 at 9:37 PM, stepharo wrote:
> Look at the icons because they are managed like an encoded byte array.
>
>
> Le 15/5/15 21:11, Leonardo Silva a écrit :
Indeed using a single top level container should be the best approach,
because "SpecLayout composed" doesn't have any layout - so adding multiple
items into it are just placed one over the other.
Arguably it might be better to add new methods "SpecLayout rows/SpecLayout
cols" or something like that
>
> > Is this related to Dynacase?
>
It is not related... yet :)
I've already sent mail to the mails written in the contact.
Peter
I find google's "define" particularly helpful...e.g. google "define
ambient" or "define ambience".
Peter
On Wed, May 27, 2015 at 1:26 PM, Laura Risani
wrote:
> I always thought that "environment" and "ambient" were synonyms, but it
> turns out that the second one is an adjective.
>
> On Wed, Ma
Hi,
I wanted to try new brick/bloc thing
https://pharoweekly.wordpress.com/2015/05/30/future-new-widget-sets-is-coming-to-you/
however after loading (in Pharo 5.0) it is complaining about
missing FILOStack (in BlBrickLayouter>>initialize)
What should I load?
Thanks,
Peter
;> Yes, better to use a queue - thanks!
>>
>> Cheers,
>> Alex
>> On Jun 1, 2015 7:32 AM, "Sven Van Caekenberghe" wrote:
>>
>>>
>>> > On 31 May 2015, at 23:15, Peter Uhnák wrote:
>>> >
>>> > FILOStack
>>>
>>> Just wondering, isn't this a contradiction in terms ?
>>> A stack is by definition LIFO, a FILO structure is normally called a
>>> queue, no ?
>>>
>>
>
HI Offray,
I gave it a quick bash and come up with the following code. It's just a
prototype and could be greatly simplified.
- MCVersionInfo ancestors for whatever reason returned empty array down the
line (so its cut off at the end), but I didn't investigate the problem
- edge building and poss
Hi,
is it possible to sort repositories in monticello browser?
When I have many (20+) packages it is quite hard to find any one. :(
Or perhaps even swap repository names around...
so instead of
http://smalltalkhub.com/#!/~Moose/PetitParser/
github://Uko/QualityAssistant:v0.4.1
gitfiletree:///hom
Hi,
is there a way to remove heading numbering for some headings?
Basically I'm looking for an equivalent of Latex' \subsection*{...}.
Thanks,
Peter
I do not think this is possible. The problem is that the Regex compiles
(parses) the pattern so once it's created you would have to reparse it.
Theoretically speaking you could add ignoreCase accessors to RxMatcher but
it is likely it would break things; or add method to RxMatcher that would
return
n! Keep going!
>
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> On Jun 2, 2015, at 10:57 AM, Peter Uhnák wrote:
>
> On Tue, Jun 2, 2015 at 3
Hi Alex,
is it possible to add some discussion about stuff we did in roassal for
dynacase to the list?
Because I feel there is some duplication effort and also we could probably
contribute some stuff we did back. Or perhaps even more general discussion
about using roassal for more dynamic and modi
Hi,
is there some best practice about
collectionDo:
versus
collection do:
?
I see many times the first used (e.g. String>>linesDo:); I see a benefit if
there is no accessor to the collection, but more times than not there
actually is.
>From my perspective it further pollutes the protocol and as a
On Wed, Jun 3, 2015 at 1:19 PM, Sergio Fedi wrote:
> If something is a tag, then you should be able to apply multiple tags to
> something.
>
Well you sort-of can do that. Consider how many packages have tag "Tests"
in it. They don't need to be globally unique and it makes sense to use the
very s
>
> I am not clear on the internals dealing with "tag" , but in your
> example I guess the tags needs to be associated with classes, but our
> current "tag"s are associated with a packages?
Yeah at least to me it feels that it is associated more with packages.
GT-Tests-Spotter makes a good examp
In moment of my utter brilliance I managed to save image without noticing
that I have infinite loop running...
So it obviously crashed and launching is quite problematic.
I managed to recompile infringing method from a startup script, since it
seems strangly that it has higher priority, however rig
I ended up fileouting what I could in headless mode (had utf8 issues for
whatever reason so I didn't get it all), and rewriting the rest. :/
But what happens once will happen again... so some more generic solution
for this would be nice.
Yuriy mentioned Oz, and it looks viable, provided it works w
On Tue, Jun 16, 2015 at 10:09 AM, Guillermo Polito <
guillermopol...@gmail.com> wrote:
> Hi!
>
> El mar., 16 de jun. de 2015 a la(s) 8:55 a. m., Peter Uhnák <
> i.uh...@gmail.com> escribió:
>
>> I ended up fileouting what I could in headless mode (had utf8 i
Hi,
I would like to describe some additional behavior for objects when they are
interacting with another objects.
The prime example is GTInspector; by default to add presentation you
implement a method with "gtInspectorPresentationOrder:". This is fine if
there is just one method like this, but w
7:23 AM, Peter Uhnák wrote:
> Hi,
>
> I would like to describe some additional behavior for objects when they
> are interacting with another objects.
>
> The prime example is GTInspector; by default to add presentation you
> implement a method with "gtInspectorPresentati
Hello,
I'm currently working on drawing engine (à la Squeak Connectors) as a part
of school project and have a couple of questions about Morphs and Athens
and would be grateful if someone could enlighten me.
What is the difference between "Morph>>#drawOn:" and
"Morph>>#drawOnAthensCanvas:" if I d
Thank you for all the suggestions. I looked more closely at Roassal and it
seems that it might have everything we would need. Basically the next step
in the project is to create extensible drawing tool for modelling languages
(UML/Petri nets/what have you), so we need to be able to draw any arbitra
Hi,
what is the recommended framework for building UIs? As I understand it Spec
should be able to handle pretty much anything, however Glamour has quite a
lot of nice features and was recommended here
http://forum.world.st/Roassal-amp-Spec-td4690745.html as a higher-level
abstraction framework (al
here there is a flow from one element to another. So the
> answer is: it depends on what you want to do.
>
> Could you tell us what is it that you are trying to build?
>
>
> On Jul 9, 2014, at 11:39 AM, Peter Uhnák wrote:
>
> > Hi,
> >
> > what is the recommended
Hi
I'm trying to draw an ellipse inside another ellipse but to no avail. I've
tried using RTCompositeShape but that just expands the size of the smaller
shape. Is there something else I'm missing (like fixing dimensions so they
won't get updated) or should I subclass RTAbstractCompositeShape and t
pe elementsOn: RTShape withAllSubclasses).
> RTFlowLayout on: v elements.
>
> v
> -=-=-=-=-=-=-=-=-=
>
>
> Alexandre
>
>
> On Jul 11, 2014, at 11:05 PM, Peter Uhnák wrote:
>
> Hi
>
> I'm trying to draw an ellipse inside another ellipse but to no avail. I've
> tried using RTCom
te your own shape.
>
> Let me know how it goes.
>
> Cheers,
> Alexandre
>
>
> On Jul 13, 2014, at 10:38 AM, Peter Uhnák wrote:
>
>> Thank you both for suggestions.
>>
>> According to Monticello I have latest Roassal2 and yet I don't see
>> RTMu
.;:~^~:;._,.;:
> Alexandre Bergel http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> On Jul 13, 2014, at 9:57 AM, Peter Uhnák wrote:
>
> Thank you, the example now works. However as I've mentioned in
> previous post I'm not sure about th
Is it possible to force MenuModel to display its groups (and group's items)
vertically instead of horizontally? The use case is having button palette
to click on. Both world menu and subMenu of MenuItemModel render it this
way but it is all hidden in the depths of Morphic. Is there any way how to
s
:)
>
> Ben
>
> On 17 Jul 2014, at 18:24, Peter Uhnák wrote:
>
> Is it possible to force MenuModel to display its groups (and group's
> items) vertically instead of horizontally? The use case is having button
> palette to click on. Both world menu and subMenu of MenuItem
; :)
>
> Ben
>
> On 17 Jul 2014, at 19:03, Peter Uhnák wrote:
>
> Well, is this something that should be done on top of the existing
> solution, or should be Morphic be pushed away and use only Spec? Or just
> use Morphic for the very last item - Button and the rest with Spe
Ok, thank you both.
On Thu, Jul 17, 2014 at 7:16 PM, Esteban Lorenzano
wrote:
>
> On 17 Jul 2014, at 19:10, Peter Uhnák wrote:
>
> But in general, is Morphic planned to be discontinued (fully replaced with
> Athens?) or just live as the bottom layer?
>
>
> No.
>
Having ~month old pharo image I was wondering what is the recommended way
of updating it. Do I just delete everything and download a fresh one every
so often (daily?), do I load new changes through Monticello? Does that
upgrade the VM though?
If the former what about local code I wrote but I don't
t. I always keep the old images, just in case.
>
> HTH,
>
> Sven
>
> PS: You can save workspaces to files, or use ScriptManager for multiple ones.
> There also exists various solutions to move preferences and/or settings
> around, YMMV.
>
> On 24 Jul 2014, at 14:58, Peter Uhn
But isn't that a bit... weird to use cache to move data from one image to
another? I would expect cache to be just a cache even if in reality it is
just a regular repository.
On Fri, Jul 25, 2014 at 12:48 AM, Norbert Hartl wrote:
>
> Am 24.07.2014 um 23:43 schrieb Stephan Eggermont :
>
> > If y
Hi,
is there any support for orthogonal lines in Roassal2? I've seen something
similar (ROOrthoVerticalLineShape), however nothing of that sort in
Roassal2. I would imagine it to behave similarly to RTBezierLine - having
controllingElements to specify the corners. (While ROOrtholines did it
automa
I have the same problem on Debian, on both Pharo 3 and 4.
I think that Chromium is doing something weird when copying to clipboard,
because every other program I've tried works just fine.
As a workaround I've installed clipboard manager and I copy from there (or
paste and re-copy in some other text
n recopy
> it from Sublime text to Pharo IDE even if (sadly) it became a habit...
>
> On 29/07/14 20:10, Peter Uhnák wrote:
> > I have the same problem on Debian, on both Pharo 3 and 4.
> > I think that Chromium is doing something weird when copying to clipboard,
> > b
ts: (1 to: 20) from: [ :n | n // 3 ] to: #yourself
> using: shape inView: v.
>
> v elements @ RTDraggable @ RTPopup.
> RTTreeLayout on: v elements.
> v open
> -=-=-=-=-=-=-=-=-=-=-=-=
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexan
ers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> On Jul 26, 2014, at 3:57 PM, Peter Uhnák wrote:
>
> Hi,
>
> is there any support
It seems that the Chromium issue is most likely a result of them switching
from GTK to Aura, since it broke in version 35 (when Aura was introduced).
So unless someone wants to dive into Pharo VM or Chromium then there is
really no simple solution.
On Wed, Jul 30, 2014 at 9:10 PM, Peter Uhnák
While playing with RTMultiLine I thought that it would be nice to have
option for RTDraggable elements to snap to a grid / move only by fixed
increments - for example the position could only be divisible by 10 (grid
size would be 10), so dragging from 20@10 to 26@4 would jump to 30@0. Is
something
x27;t this be handled at Roassal level as it was done in Roassal1
(ROMouseRightClick)?
On Thu, Jul 31, 2014 at 9:58 PM, Peter Uhnák wrote:
> While playing with RTMultiLine I thought that it would be nice to have
> option for RTDraggable elements to snap to a grid / move only by fixed
> in
o slightly process the matrix coordinate. Maybe there are other way
> to do this, but it does not look like. Changing Trachel because of this
> seems a bit overkill...
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel http://www.bergel.eu
> ^~
using: shape inView: v.
> >>
> >> v elements @ RTDraggable @ RTPopup.
> >>
> >> RTTreeLayout on: v elements.
> >> v open
> >> -=-=-=-=-=-=-=-=-=-=-=-=
> >>
> >> Cheers,
> >> Alexandre
> >> --
> >> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^
oing with having a snapOnGrid behavior?
>
> Cheers,
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> On Aug 1, 2014, at 2:36 PM, Peter Uhnák wrote:
&g
r scenario will be covered by the tests.
>
> Alexandre
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> On Aug 2, 2014, at 5:29 AM, Peter Uhnák wrote:
>
> Hi Alex,
>
> is there a (
nceptual - should the interaction
be even responsible for creating those shapes - especially RTMultiLine? But
than again RTLabelled creates Label itself too.
Anyway... off to play with the grid now.
P
On Wed, Aug 13, 2014 at 10:00 AM, Peter Uhnák wrote:
> It's a bit longer since at the time
,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
> On Aug 11, 2014, at 4:37 AM, Peter Uhnák wrote:
>
> Hi Alex,
>
> unfortunately I've been quite busy with other stuff however it's on my
> todo list so I'm planning to get back to it later this week.
>
Is it possible to configure formatter to preserve empty lines and line
comments?
e.g.
--
myMethod
someCode.
< empty line that I would like to preserve >
moreCode.
---
the formatter also automatically puts comments on the end of the previous
statement.
e.g.
--
someCode.
Ah!
RBConfigurableFormatter class>>settingsOn: is missing one setting
(aBuilder setting: #retainBlankLinesBetweenStatements)
label: 'Retain blank lines between statements'.
As for the comments, I looked at
RBConfigurableFormatter>>formatStatementCommentsFor:
one idea might be to look a
rue: [ self newLines: count ]
ifFalse: [ codeStream tab ].
codeStream nextPutAll: (originalSource copyFrom: each first to: each last) ]
--
to allow having comments on top of sections of code.
On Wed, Aug 20, 2014 at 10:20 PM, Peter Uhnák wrote:
> Ah!
>
> RBConfigurableFor
M, Tudor Girba wrote:
> Hi Peter,
>
> I am not sure I understand.
>
> Is the worry caused by the fact that when there are multiple gtInspector*
> methods then the API would get polluted?
>
> Cheers,
> Doru
>
>
>
> On Thu, Jun 18, 2015 at 7:35 AM, Peter Uh
--
For example Roassal's RTElement exposes a dictionary to which I can add
random stuff, however from my experience that gets messy fast (since I end
up just manipulating symbols in structural/procedural code).
Peter
On Thu, Jun 18, 2015 at 8:37 AM, Peter Uhnák wrote:
> The worry is caused by
>
>
> > I don't fully understand the TreeModel example, what would your tool do
> with all the men/displayBlock/childrenBlock ... - methods?
>
Ah, I should've explained what TreeModel is; it is a Spec UI widget to
display tree-like structures:
So the way this works is that I give the TreeMod
And gmail didn't add the image correctly it seems...
On Thu, Jun 18, 2015 at 10:10 AM, Peter Uhnák wrote:
>
>> > I don't fully understand the TreeModel example, what would your tool do
>> with all the men/displayBlock/childrenBlock ... - methods?
>>
&g
I suggest using http://forum.world.st/ for searching through mailing lists;
using Google is often hit-or-miss (which even with all its neural networks
and tracking me everywhere is still after years suggesting Pharaoh...)
Anyway, there seems to be something
http://forum.world.st/PetitYAML-td480367
Hi,
is it possible to add such a parser that would consume input, but wouldn't
return anything?
Right now I do things like...
MyParser>>rule
^ ($[ asParser, anotherRule, $] asParser) ==> [ :nodes | nodes second ]
Of course when the rules are more complex, so is the block; however it
seems t
Hi,
there was a long discussion about the meaning of example* methods and
pragmas, however I do not know what was the final resolution.
Basically I am interested in two use-cases
1. executable example (the one where Nautilus shows nice play icon)
This is as I understand only through example* na
Thank you all for your answers (For whatever reason all replies by Torsten
to this thread ended up as separate threads.. maybe mail client issues?)
It seems that is then the go-to naming for now. I also like that
the word starts differently so it's easy to differentiate them at a glance.
On Mon
Hi,
is there any image (as in picture) processing library in the likes of
Python's PIL(http://effbot.org/imagingbook/image.htm),
or even (highly unlikely) something like OpenCV (http://opencv.org/)?
Thanks,
Peter
As for the saving, you can also look at
http://smalltalkhub.com/#!/~peteruhnak/IconFactory (or just browse
ThemeIcons, which is already present in the image), which stores the images
in methods as base64 strings.
Peter
On Sat, Jun 27, 2015 at 5:20 PM, Tudor Girba wrote:
> Just look at FileRefer
On Mon, Jun 29, 2015 at 12:16 PM, Stephan Eggermont
wrote:
> On 29-06-15 10:26, Hannes Hirzel wrote:
>
>> Thank you, Stephan, for providing a well worked out example continuing
>> where
>> Morphic tutorials normally end. This is a real need to unearth functions
>> which have been there fore years
Or if you want to create an array with elements already in it (this works
both for array and collections) you can also do
~~
{ anElement } "dynamic array syntax, Pharo-only"
~~
or
#('element') "static array, works only for scalars"
or
Array with:
What is it drawn with?
On Mon, Jun 29, 2015 at 6:53 PM, Mark Rizun wrote:
> Need a bit of anti-aliasing for the round shapes :)
>>
>
> Right :)
>
>
>> I wonder how it will look with a long method: they usually have rather
>> flat ASTs that would result in a wide diagram.
>
>
> Yes it will be pre
I've had also bad results on windows...
Windows XP 32bit (VirtualBox) - 178.200 (compilations per second)
compared to
Ubuntu 32bit (VirtualBox) - 694.932
Debian 64bit (host) - 669.932
I had also had experience with Git handling small files on windows was
incredibly slow... so maybe it has someth
Windows XP
1011857707 bytecodes/sec; 132044070 sends/sec
Debian
1172295363 bytecodes/sec; 144744207 sends/sec
But I think taking the compile: method apart tells a better story
~~~
code := 'a'.
method := Object compiler
source: code;
requestor: nil;
failBlock: [ ^nil ];
compile.
No need to have both if you are returning the receiver.
^ something aMsg ifNotNil: [ aNotherResult ]
For example try printing these two lines
1 ifNotNil: [ true ]. "true"
nil ifNotNil: [ true ]. "nil"
If you are interested in the implementation details I highly recommend to
look at the implement
Make sense if there's code in between.
something aMsg ifNil:[ ^ something aMsg ]. "yay for guards!"
"much more code"
^ aNotherResult
Peter
Yeah, that should be >something aMsg ifNil: [ ^ nil ]<
I thought you were referring to something else originally. :)
On Tue, Jun 30, 2015 at 1:43 PM, jtuc...@objektfabrik.de <
jtuc...@objektfabrik.de> wrote:
> Am 30.06.15 um 13:40 schrieb Peter Uhnák:
>
>> Make sense if
I think we've safely established that the bottleneck is disk operations.
Quoting from previous emails...
store := [
method putSource: code inFile: 2
withPreamble: [:f | f cr; nextPut: $!; nextChunkPut: 'Behavior method'; cr].
].
machine 1:
Debian 64bit (laptop)
store bench. 41604 per second
Win
e:inFile:withPreambule statement
by statement.
Is there some more convenient way to do it than wrap each statement in a
block? Some way to profile a method or something.
Peter
On Tue, Jun 30, 2015 at 7:00 PM, Sven Van Caekenberghe wrote:
>
> > On 30 Jun 2015, at 18:36, Peter Uhnák
Is it possible to skip whole class from testing?
I could do "self skip" for individual methods, but the problems arise even
in setUp so I would like to stop the whole class from being tested. Is that
possbile?
Thanks,
Peter
Of course... thanks :)
Peter
On Wed, Jul 1, 2015 at 6:44 PM, Camille wrote:
>
> > On 01 Jul 2015, at 18:24, Peter Uhnák wrote:
> >
> > Is it possible to skip whole class from testing?
> > I could do "self skip" for individual methods, but the problems ari
This is cool indeed!
It would be interesting to integrate it with Roassal to drag elements
around. :)
Peter
On Thu, Jul 2, 2015 at 12:33 AM, Johan Fabry wrote:
> Very cool !
>
> > On Jul 1, 2015, at 18:52, stepharo wrote:
> >
> >
> > Now that we have gestures we can interface recognisers.
> >
>
> > So for me
> > arg: [ ^ ... ]
> >
> > is a big warning.
> >
> > Stef
>
> Is there a code critic for that ? :)
>
> There is code critic that encourages you to use it for guards. :)
Peter
by the way
> nextOrNextAfterNext := stream next ifNil: [stream next].
>
I would argue that almost every person who would read this would think it's
a bug and it should be ifNotNil:
Also there would be no point in saving it to a variable if you will just
return.
^ stream next ifNil: [ stream nex
>
> By the way, I've always used return statements in blocks to "break" out of
> loops since i didn't find any "break" method in Pharo. Is that bad too ?
>
It's still the same thing. Could you provide an example where you do such a
thing? When I started with Smalltalk I had also this habit of forc
By "something like that" you mean what? More widgets? yaml-like DSL? Touch?
Peter
On Sat, Jul 4, 2015 at 3:36 PM, Hilaire wrote:
> For the record, a friend told me about this
> https://en.wikipedia.org/wiki/Kivy
>
> Will it be cool to have something like that?
>
> Hilaire
>
> --
> Dr. Geo
> ht
>
> Is Bloc a user interface markup language?
> Or a graphic framework like Morphic?
>
Bloc is replacement for Morphic.
Smalltalk is the markup language; it gives you much more expressiveness
compared to static DSLs.
Would be possible for STON to report context for error?
For example
STON fromString: '[
"first",
"second",
]'
reports "At character 23: invalid input" which is not very useful
especially in longer strings.
(at: 23 is actually Character cr)
Maybe better would be something like
'At character 23:
How come this passes?
STON fromString: '{
"a": "b"
}wtf",
"x": "y"
'.
The result is dictionary "a" -> "b".
I would expect for it to die on parse error.
Peter
201 - 300 of 721 matches
Mail list logo