Re: [Pharo-dev] Dear Developer _ Please help, I think had corupted repository and image,

2014-07-04 Thread Nicolai Hess
2014-07-04 12:27 GMT+02:00 Esteban Lorenzano :

> preferences are:
>
> in mac:
> ~/Library/Preferences/pharo
>
> in linux:
>
> ./config/pharo
>
> in windows, I don’t know
>

in Windows:
%APPDATA%\Pharo



>
> Esteban
>
> On 04 Jul 2014, at 12:20, Janko Korelc  wrote:
>
> Several days ago I did include many packaeges in image up to Eye-watcer,
> than started to look what a repository is all about - so, was given offer
> to have some subdomain with my name and probably uploaded everything. Next
> time when I started my image from disk there was small progress bar -
> loading preferences and Eye-Inspector was in debuger window with Metaclass
> not understanding some message. Clearly had installed something unfinished
> or wrongly initialized. So, i deleted entire Pharo directory, and
> downloaded pharo, and same thing happend. Pretty nasty Huh, I am sorry if i
> ruined something on repository I am afraid of.
>
> Could you please tell me what is going on?
> Also where is the file with preferences ?
>
> Or in case i ruined repository how long does it take to fix it, please
> help!
>
> Thank You!
> Janko Korelc
>
>
>


Re: [Pharo-dev] NewList without Icons

2014-07-04 Thread Nicolai Hess
I give up. I tried to find a place where to put such an option.
But I just don't  have a clue how all that works. The interaction between
NewList, NewListModel, NewListAdapter, MorphicNewListAdapter and
NewListRenderer.

If I add an "providesIcon" option to NewListAdapter, it does not work on an
the lists used
in EyeInspector. If I add this option to MorphicNewListAdapter, it does not
work for NewListExample.

I don't think I have to add a instvar, setter and getter to three different
classes just to make this work.

Would it make more sense to create a subclass NewIconList?





2014-05-21 10:23 GMT+02:00 Benjamin :

> On 21 May 2014, at 00:08, Nicolai Hess  wrote:
>
> Therefore, is there a way  to create the NewList and tell it to NEVER
> ask for icons?
>
>
> As far as I remember I did not implement this option :)
>
> But having a flag for that should not be too complicated to add ;)
>
> Good luck,
> Ben
>


Re: [Pharo-dev] [Pharo4] First Class Global Variables

2014-07-04 Thread Eliot Miranda
Hi Marcus,


On Thu, Jul 3, 2014 at 8:51 AM, Marcus Denker 
wrote:

> Hi,
>
> If we have meta-object describing (and thus having the power to change the
> semantics of) instance variables,
> we need the same for Globals.
>
> I think the easiest is to just re-use the object hat is already there: the
> “binding”, that is, the association from
> the dictionary where the global lives (e.g. the classPool for class vars,
> Smalltalk globals for true globals, and so on).
>
> SystemVersion bindingOf: ‘Current'
>
> The VM just cares that it is an assoiation (actually, it just care that
> there are two fields, but the rest of the image cares
> about value and key…)
>
> -> we can make a subclass of Association
> -> we can have the compiler forward code generation to the object that
> describes the global
> -> we can add a nice MOP API: #read and #write:  (instead of #value and
> #value:)
> -> Programmers can subclass the GlobalVariable and change #read and #write
> like they want (or override
> the code gen methods) as in Slots.
>

One thing I think is worth-while is having the compiler inline read-only
globals, especially classes.  Most classes never change, and even if they
do, become: means that references to them (including in machine code) get
updated, so there's little downside.

The only drawback is that you can not add an instance variables, I think,
> to check… maybe it even works?
> If not, there are ways around that e.g. using some fancy Slot that does
> not need an ivar but uses a weak dictionary
> in a class variable, for example).
>

Since the VM doesn't look beyond the second field it doesn't care if you
add inst vars.  It only expects the value field to be the second inst var;
it never asks for the size of the association or anything like that.
 Remember that both key and value are fixed inst vars.

Thus: it would be fairly easy to have the class vars be as flexible as the
> slots… and then e.g. you will be able
> to  put breakpoints and watchers on class vars. You could even define
> globals with special behaviour the same
> way as you do with Slots.
>
> Marcus
>
>
>


-- 
best,
Eliot


[Pharo-dev] [pharo-project/pharo-core] af0599: 40063

2014-07-04 Thread GitHub
  Branch: refs/heads/4.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: af05993ee99be6f14f5dfe4ea76747cc8a77ca8a
  
https://github.com/pharo-project/pharo-core/commit/af05993ee99be6f14f5dfe4ea76747cc8a77ca8a
  Author: Jenkins Build Server 
  Date:   2014-07-04 (Fri, 04 Jul 2014)

  Changed paths:
A 
AST-Interpreter-Core.package/extension/BlockClosure/instance/asASTBlockClosure.st
A 
AST-Interpreter-Core.package/extension/CompiledMethod/instance/accept_on_message_.st
A AST-Interpreter-Core.package/extension/CompiledMethod/instance/code.st
A 
AST-Interpreter-Core.package/extension/CompiledMethod/instance/isReflective.st
A 
AST-Interpreter-Core.package/extension/Context/instance/asASTInterpreterContext.st
A AST-Interpreter-Core.package/extension/Context/instance/returnContext.st
A 
AST-Interpreter-Core.package/extension/UndefinedObject/instance/asASTInterpreterContext.st
R 
AST-Interpreter-Extension.package/extension/BlockClosure/instance/asASTBlockClosure.st
R 
AST-Interpreter-Extension.package/extension/CompiledMethod/instance/accept_on_message_.st
R 
AST-Interpreter-Extension.package/extension/CompiledMethod/instance/code.st
R 
AST-Interpreter-Extension.package/extension/CompiledMethod/instance/isReflective.st
R 
AST-Interpreter-Extension.package/extension/Context/instance/asASTInterpreterContext.st
R 
AST-Interpreter-Extension.package/extension/Context/instance/returnContext.st
R 
AST-Interpreter-Extension.package/extension/UndefinedObject/instance/asASTInterpreterContext.st
R EventModel.package/extension/HandMorph/instance/eventSource.st
R 
EventModel.package/extension/HandMorph/instance/handleKeyboardInputEvent_.st
R EventModel.package/extension/HandMorph/instance/handleMouseInputEvent_.st
R Morphic-Base.package/extension/WorldState/instance/convertStepList.st
A Morphic-Core.package/WorldState.class/instance/cleaning/cleanStepList.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
scripts/script63.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
updates/update40063.st
M 
ScriptLoader40.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
M Tools.package/ImageCleaner.class/instance/api/cleanUpForProduction.st
M Tools.package/ImageCleaner.class/instance/cleaning/cleanUpMethods.st

  Log Message:
  ---
  40063
13466 convertStepList --> cleanStepList (no need to keep the conversation code 
forever)
https://pharo.fogbugz.com/f/cases/13466

13468 move methods from AST-Intepreter-Extensions to *-Core
https://pharo.fogbugz.com/f/cases/13468

13469 Package EventModel is unused --> remove
https://pharo.fogbugz.com/f/cases/13469

13467 #cleanUpForProduction should unload Versionner
https://pharo.fogbugz.com/f/cases/13467

http://files.pharo.org/image/40/40063.zip




[Pharo-dev] [pharo-project/pharo-core]

2014-07-04 Thread GitHub
  Branch: refs/tags/40063
  Home:   https://github.com/pharo-project/pharo-core


Re: [Pharo-dev] Project states

2014-07-04 Thread Esteban Lorenzano
Hi,

as far as I know: 

On 04 Jul 2014, at 15:25, Torsten Bergmann  wrote:

> Hi,
> 
> anyone able to tell something about the states of the following projects? 
> 
> I'm just curious
> - if they are dead (if so why)
> - if someone is working/plans to work on them actively 
> - if something is just planned to be replaced in the future with better 
> projects
> 
> Lots of power was invested to start/run projects in Pharo and I want to 
> understand
> if it will be possible to have them out of the box:
> 
> 
> 1. SCRIPTING
> 
>There was/is CORAL (http://rmod.lille.inria.fr/coral/) - a scripting 
>environment for Pharo. No activity on the list since Nov. 2013.

unfinished. 
last year we made a lot of work on allowing pharo to be executed by command 
line (necessary for scripting). 
now we need to release coral. AFAIK, no much stuff was needed, but Damien will 
be able to provide better answers.  

> 
>What is the state of the project? Was it just research or how
>can we use todays Pharo 3.0/Pharo 4.0 for scripting. Are there other/new 
> plans?
> 
> 2. UI BUILDER TOOL 
> 
>There was http://www.squeaksource.com/UIBuilder.html marked as
>"Failed attempt of develop a UI builder for Pharo-Smalltalk.”

dead

> 
>Also the "UI Painter" project developed as part of GSOC 2013 for Pharo 
> based on 
>Spec. Not updated anymore.  http://uipainter-gsoc.over-blog.com with no 
> activity
>since 9/2013.
> 
> 3. NAMESPACES
> 
>Squeak got environments, if I remember correctly there was even code for
>Pharo available. Do we plan to have them as well or is there the idea of
>a better namespace implementation. 

dead
we want namespaces (bah, I want them). But no existing implementation has been 
satisfactory yet.
now, I know Camille is working a bit in that direction, but no idea when/if he 
will be able to provide code.  

> 
> 4. TxText
> 
>Providing a better text editor for Pharo. What is the state of this?

humm… no idea.

Esteban 

> 
> 
> Thanks
> T.
> 




[Pharo-dev] Participating to a great project!

2014-07-04 Thread Hilaire Fernandes

Hi,

Because we are a smart and cool community we deserve to build great 
project! Pharo is our power horse, our charismatic leaders show us the 
path of step by step work, stone after stone to build the great Pharo 
lighthouse! It is fun and exciting, it makes us feel smart and we want 
to share this feeling with other to participate as well.


This is why I am doing Dr. Geo, to share how cool is Pharo, how great it 
makes you fell to write an application with it.


A Dr. Geo user, contrary to the other same class software (i.e. 
interactive geometry), can dive from the application level to the 
programming level instantly, without superfluous cost (no need to 
install JAVA dev environement and IDE, etc.)
Dr. Geo typical user is a curious, a teacher or a student, for me they 
all deserve the best, and the best is "you can dive into Dr Geo and 
learn from it, modify it." Remember the Dan Ingalls quote: "If a system 
is to serve the creative spirit, it must be entirely comprehensible to a 
single individual." This is where we stand, it is our strong hold, and 
the DrGeo strong hold.


I want DrGeo to evolve faster, I have been doing the hard job to port to 
Athens and I got beaten with unstabilized features, but now the hard 
part is done, and it is time to move faster and quicker. Nowdays, 
programming at school is coming back as the new promise land for 
education, it is a unique chance for DrGeo and its programming feature 
to bring its stone.


To push forward, I have filled tickets for new features or improvements. 
Fell free to comment or to add new idea. I need you to make it real => 
http://bug.drgeo.eu


Thanks to read

Hilaire

--
Dr. Geo http://drgeo.eu
iStoa - https://launchpad.net/istoa




[Pharo-dev] Project states

2014-07-04 Thread Torsten Bergmann
Hi,

anyone able to tell something about the states of the following projects? 

I'm just curious
 - if they are dead (if so why)
 - if someone is working/plans to work on them actively 
 - if something is just planned to be replaced in the future with better 
projects

Lots of power was invested to start/run projects in Pharo and I want to 
understand
if it will be possible to have them out of the box:

  
 1. SCRIPTING

There was/is CORAL (http://rmod.lille.inria.fr/coral/) - a scripting 
environment for Pharo. No activity on the list since Nov. 2013.

What is the state of the project? Was it just research or how
can we use todays Pharo 3.0/Pharo 4.0 for scripting. Are there other/new 
plans?

 2. UI BUILDER TOOL 

There was http://www.squeaksource.com/UIBuilder.html marked as
"Failed attempt of develop a UI builder for Pharo-Smalltalk."
   
Also the "UI Painter" project developed as part of GSOC 2013 for Pharo 
based on 
Spec. Not updated anymore.  http://uipainter-gsoc.over-blog.com with no 
activity
since 9/2013.

 3. NAMESPACES

Squeak got environments, if I remember correctly there was even code for
Pharo available. Do we plan to have them as well or is there the idea of
a better namespace implementation. 

 4. TxText

Providing a better text editor for Pharo. What is the state of this?


Thanks
T.



[Pharo-dev] [pharo-project/pharo-core] 56d1ee: 40062

2014-07-04 Thread GitHub
  Branch: refs/heads/4.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: 56d1ee847ebc3f56e146a652fb5dd29f0ac5dc49
  
https://github.com/pharo-project/pharo-core/commit/56d1ee847ebc3f56e146a652fb5dd29f0ac5dc49
  Author: Jenkins Build Server 
  Date:   2014-07-04 (Fri, 04 Jul 2014)

  Changed paths:
A Collections-Sequenceable.package/OrderedDictionary.class/README.md
A Collections-Sequenceable.package/OrderedDictionary.class/class/instance 
creation/defaultValue_.st
A Collections-Sequenceable.package/OrderedDictionary.class/class/instance 
creation/new.st
A Collections-Sequenceable.package/OrderedDictionary.class/class/instance 
creation/newFrom_.st
A Collections-Sequenceable.package/OrderedDictionary.class/class/instance 
creation/new_.st
A Collections-Sequenceable.package/OrderedDictionary.class/class/instance 
creation/new_withDefaultValue_.st
A Collections-Sequenceable.package/OrderedDictionary.class/definition.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/associationAt_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/associationAt_ifAbsent_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/associations.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/at_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/at_ifAbsentPut_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/at_ifAbsent_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/at_ifPresent_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/at_put_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/capacity.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/defaultValue.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/defaultValue_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/keyAtIdentityValue_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/keyAtIdentityValue_ifAbsent_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/keyAtValue_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/keyAtValue_ifAbsent_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/keyForIdentity_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/keys.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/keysSortedSafely.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/size.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/accessing/values.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/adding/addAll_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/adding/add_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/comparing/=.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/copying/copyEmpty.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/copying/postCopy.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/enumerating/associationsDo_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/enumerating/associationsSelect_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/enumerating/collect_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/enumerating/do_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/enumerating/keysAndValuesDo_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/enumerating/keysDo_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/enumerating/select_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/enumerating/valuesDo_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/initialization/initialize_withDefaultValue_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/printing/printElementsOn_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/printing/printNameOn_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/private/dictionary.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/private/orderedKeys.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/removing/keysAndValuesRemove_.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/instance/removing/removeAll.st
A 
Collections-Sequenceable.package/OrderedDictionary.class/

[Pharo-dev] [pharo-project/pharo-core]

2014-07-04 Thread GitHub
  Branch: refs/tags/40062
  Home:   https://github.com/pharo-project/pharo-core


Re: [Pharo-dev] Dear Developer _ Please help, I think had corupted repository and image,

2014-07-04 Thread stepharo

what is eye-watcher?

On 4/7/14 12:20, Janko Korelc wrote:
Several days ago I did include many packaeges in image up to 
Eye-watcer, than started to look what a repository is all about - so, 
was given offer to have some subdomain with my name and probably 
uploaded everything. Next time when I started my image from disk there 
was small progress bar - loading preferences and Eye-Inspector was in 
debuger window with Metaclass not understanding some message. Clearly 
had installed something unfinished or wrongly initialized. So, i 
deleted entire Pharo directory, and downloaded pharo, and same thing 
happend. Pretty nasty Huh, I am sorry if i ruined something on 
repository I am afraid of.


Could you please tell me what is going on?
Also where is the file with preferences ?

Or in case i ruined repository how long does it take to fix it, please 
help!


Thank You!
Janko Korelc




Re: [Pharo-dev] Dear Developer _ Please help, I think had corupted repository and image,

2014-07-04 Thread Esteban Lorenzano
preferences are:

in mac: 
~/Library/Preferences/pharo

in linux: 

./config/pharo

in windows, I don’t know 

Esteban

On 04 Jul 2014, at 12:20, Janko Korelc  wrote:

> Several days ago I did include many packaeges in image up to Eye-watcer, than 
> started to look what a repository is all about - so, was given offer to have 
> some subdomain with my name and probably uploaded everything. Next time when 
> I started my image from disk there was small progress bar - loading 
> preferences and Eye-Inspector was in debuger window with Metaclass not 
> understanding some message. Clearly had installed something unfinished or 
> wrongly initialized. So, i deleted entire Pharo directory, and downloaded 
> pharo, and same thing happend. Pretty nasty Huh, I am sorry if i ruined 
> something on repository I am afraid of. 
> 
> Could you please tell me what is going on?
> Also where is the file with preferences ?
> 
> Or in case i ruined repository how long does it take to fix it, please help!
> 
> Thank You!
> Janko Korelc



[Pharo-dev] Dear Developer _ Please help, I think had corupted repository and image,

2014-07-04 Thread Janko Korelc
Several days ago I did include many packaeges in image up to Eye-watcer,
than started to look what a repository is all about - so, was given offer
to have some subdomain with my name and probably uploaded everything. Next
time when I started my image from disk there was small progress bar -
loading preferences and Eye-Inspector was in debuger window with Metaclass
not understanding some message. Clearly had installed something unfinished
or wrongly initialized. So, i deleted entire Pharo directory, and
downloaded pharo, and same thing happend. Pretty nasty Huh, I am sorry if i
ruined something on repository I am afraid of.

Could you please tell me what is going on?
Also where is the file with preferences ?

Or in case i ruined repository how long does it take to fix it, please help!

Thank You!
Janko Korelc


Re: [Pharo-dev] [Pharo4] First Class Global Variables

2014-07-04 Thread Tudor Girba
I did not read the code in detail, but the behavior works beautifully now!

Thanks!

Doru


On Fri, Jul 4, 2014 at 10:24 AM, Marcus Denker 
wrote:

>
> On 03 Jul 2014, at 17:51, Marcus Denker  wrote:
>
> > Hi,
> >
> > If we have meta-object describing (and thus having the power to change
> the semantics of) instance variables,
> > we need the same for Globals.
> >
> > I think the easiest is to just re-use the object hat is already there:
> the “binding”, that is, the association from
> > the dictionary where the global lives (e.g. the classPool for class
> vars, Smalltalk globals for true globals, and so on).
> >
> >   SystemVersion bindingOf: ‘Current'
> >
> > The VM just cares that it is an assoiation (actually, it just care that
> there are two fields, but the rest of the image cares
> > about value and key…)
> >
> > -> we can make a subclass of Association
> > -> we can have the compiler forward code generation to the object that
> describes the global
> > -> we can add a nice MOP API: #read and #write:  (instead of #value and
> #value:)
> > -> Programmers can subclass the GlobalVariable and change #read and
> #write like they want (or override
> > the code gen methods) as in Slots.
> >
>
> I have added a first GlobalVar hierarchy… it has already the code
> generation methods but Opal is not yet forwarding
> code generation (and the compiler does not yet compile bindings with the
> subclass).
>
> Marcus
>
>
>


-- 
www.tudorgirba.com

"Every thing has its own flow"


Re: [Pharo-dev] [Pharo4] theme change via Settings: call #installFullTheme

2014-07-04 Thread Marcus Denker

On 04 Jul 2014, at 10:34, Yuriy Tymchuk  wrote:

> Cool, thank you Marcus!
> 
> But isn’t #installFullTheme damaging something? Can you come back to white 
> theme after that?

It is setting font colors. The Pharo3Theme has it’s own installFullTheme. The 
others not, maybe they
just need the same setting as the Pharo3Theme.

> 
> Uko
> 
> On 04 Jul 2014, at 10:26, Marcus Denker  wrote:
> 
>> Hi,
>> 
>> When people are enabling the Pharo Dark theme in Pharo4 using settings is is 
>> not very usable or nice as
>> the font colors are not changed.
>> 
>> I fixed that in 4.0 061: now setting the theme calls #installFullTheme 
>> automatically.
>> 
>> (now it would be nice if open windows would be re-created with the new 
>> theme… but that is not simple
>> to do).
>> 
>>  Marcus
> 
> 




Re: [Pharo-dev] [Pharo4] theme change via Settings: call #installFullTheme

2014-07-04 Thread Yuriy Tymchuk
Cool, thank you Marcus!

But isn’t #installFullTheme damaging something? Can you come back to white 
theme after that?

Uko

On 04 Jul 2014, at 10:26, Marcus Denker  wrote:

> Hi,
> 
> When people are enabling the Pharo Dark theme in Pharo4 using settings is is 
> not very usable or nice as
> the font colors are not changed.
> 
> I fixed that in 4.0 061: now setting the theme calls #installFullTheme 
> automatically.
> 
> (now it would be nice if open windows would be re-created with the new theme… 
> but that is not simple
> to do).
> 
>   Marcus




[Pharo-dev] [pharo-project/pharo-core] 4ff314: 40061

2014-07-04 Thread GitHub
  Branch: refs/heads/4.0
  Home:   https://github.com/pharo-project/pharo-core
  Commit: 4ff31437bba65f99ce2d0a410863fb7314e8837d
  
https://github.com/pharo-project/pharo-core/commit/4ff31437bba65f99ce2d0a410863fb7314e8837d
  Author: Jenkins Build Server 
  Date:   2014-07-04 (Fri, 04 Jul 2014)

  Changed paths:
A Kernel.package/Object.class/instance/introspection/writeToGlobal_.st
A 
Polymorph-Widgets.package/UITheme.class/class/installing/installFullTheme.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
scripts/script61.st
A ScriptLoader40.package/ScriptLoader.class/instance/pharo - 
updates/update40061.st
M 
ScriptLoader40.package/ScriptLoader.class/instance/public/commentForCurrentUpdate.st
M 
Settings-Polymorph.package/PolymorphSystemSettings.class/class/morphic/uiThemeClass_.st
A Slot.package/AbstractGlobalVariable.class/README.md
A Slot.package/AbstractGlobalVariable.class/definition.st
A Slot.package/AbstractGlobalVariable.class/instance/code 
generation/emitStore_.st
A Slot.package/AbstractGlobalVariable.class/instance/code 
generation/emitValue_.st
A 
Slot.package/AbstractGlobalVariable.class/instance/meta-object-protocol/read.st
A 
Slot.package/AbstractGlobalVariable.class/instance/meta-object-protocol/write_.st
A 
Slot.package/AbstractGlobalVariable.class/instance/queries/allMethodsReferencingMe.st
A Slot.package/GlobalVariable.class/README.md
A Slot.package/GlobalVariable.class/definition.st
A Slot.package/GlobalVariable.class/instance/code generation/emitStore_.st
A Slot.package/GlobalVariable.class/instance/code generation/emitValue_.st
M Slot.package/LinkWrapper.class/instance/emitting/emitValue_.st
A Slot.package/MetaLink.class/README.md
A Slot.package/MetaLink.class/definition.st
A Slot.package/MetaLink.class/instance/accessing/metaObject.st
A Slot.package/MetaLink.class/instance/accessing/metaObject_.st
A Slot.package/MetaLink.class/instance/accessing/selector.st
A Slot.package/MetaLink.class/instance/accessing/selector_.st
A Slot.package/Slot.class/instance/queries/allMethodsReferencingMe.st
M Traits.package/TClass.class/instance/class variables/classVarNamed_put_.st
A Traits.package/TClass.class/instance/class variables/classVariables.st
A Traits.package/TClass.class/instance/subclass creation - 
slots/subclass_layout_slots_classVariableNames_category_.st
A Traits.package/TClass.class/instance/subclass creation - 
slots/subclass_layout_slots_classVariableNames_poolDictionaries_category_.st
M Traits.package/TClass.class/instance/subclass creation - 
slots/subclass_slots_classVariableNames_category_.st
A Traits.package/TClass.class/instance/subclass creation - 
slots/subclass_slots_classVariableNames_poolDictionaries_category_.st
A Traits.package/TClass.class/instance/subclass creation - 
slots/subclass_uses_layout_slots_classVariableNames_category_.st
A Traits.package/TClass.class/instance/subclass creation - 
slots/subclass_uses_layout_slots_classVariableNames_poolDictionaries_category_.st
A Traits.package/TClass.class/instance/subclass creation - 
slots/subclass_uses_slots_classVariableNames_category_.st
A Traits.package/TClass.class/instance/subclass creation - 
slots/subclass_uses_slots_classVariableNames_poolDictionaries_category_.st
M Traits.package/TClassDescription.class/instance/slots/slotNamed_link_.st

  Log Message:
  ---
  40061
13461 Slots: GlobalVariable and more class creation methods
https://pharo.fogbugz.com/f/cases/13461

13460 When selecting a UI Theme in the Setting, it should call #installFullTheme
https://pharo.fogbugz.com/f/cases/13460

http://files.pharo.org/image/40/40061.zip




[Pharo-dev] [pharo-project/pharo-core]

2014-07-04 Thread GitHub
  Branch: refs/tags/40061
  Home:   https://github.com/pharo-project/pharo-core


[Pharo-dev] [Pharo4] theme change via Settings: call #installFullTheme

2014-07-04 Thread Marcus Denker
Hi,

When people are enabling the Pharo Dark theme in Pharo4 using settings is is 
not very usable or nice as
the font colors are not changed.

I fixed that in 4.0 061: now setting the theme calls #installFullTheme 
automatically.

(now it would be nice if open windows would be re-created with the new theme… 
but that is not simple
to do).

Marcus


Re: [Pharo-dev] [Pharo4] First Class Global Variables

2014-07-04 Thread Marcus Denker

On 03 Jul 2014, at 17:51, Marcus Denker  wrote:

> Hi,
> 
> If we have meta-object describing (and thus having the power to change the 
> semantics of) instance variables,
> we need the same for Globals.
> 
> I think the easiest is to just re-use the object hat is already there: the 
> “binding”, that is, the association from
> the dictionary where the global lives (e.g. the classPool for class vars, 
> Smalltalk globals for true globals, and so on).
> 
>   SystemVersion bindingOf: ‘Current'
> 
> The VM just cares that it is an assoiation (actually, it just care that there 
> are two fields, but the rest of the image cares
> about value and key…)
> 
> -> we can make a subclass of Association
> -> we can have the compiler forward code generation to the object that 
> describes the global
> -> we can add a nice MOP API: #read and #write:  (instead of #value and 
> #value:)
> -> Programmers can subclass the GlobalVariable and change #read and #write 
> like they want (or override
> the code gen methods) as in Slots.
> 

I have added a first GlobalVar hierarchy… it has already the code generation 
methods but Opal is not yet forwarding
code generation (and the compiler does not yet compile bindings with the 
subclass).

Marcus




Re: [Pharo-dev] [Pharo4] First Class Global Variables

2014-07-04 Thread Marcus Denker

On 04 Jul 2014, at 08:21, Denis Kudriashov  wrote:

> Hi
> 
> Classes are global variables too. How it related here?

Yes, they are defined by the “Smalltalk globals” dictionary. To read a Global 
the method has the binding
(the association from that global dictionary) in it’s literal frame and uses 
the “push/pop LiteralVarible” bytecode
which pushes (or stores into) the value of the binding.

> And what about environments to support some kind of namespaces? Do you have 
> plan for this?
> 

We need them but I need to first finish other things...

Marcus