Skip to content
#

Pharo

pharo logo

Pharo is an open source dynamic and reflective language inspired from the programming language

and integrated development environment (IDE) Smalltalk.

Pharo offers strong live programming features such as immediate object manipulation,

live update and hot recompiling. The live programming environment is at the heart of the system.

Here are 1,004 public repositories matching this topic...

pharo
Ducasse
Ducasse commented Jun 12, 2022
printProtocol: protocol sourceCode: sourceCode

	^ String streamContents: [ :stream |
		stream
			nextPutAll: '"protocol: '; 
			nextPutAll: protocol printString;
			nextPut: $"; cr; cr;
			nextPutAll: sourceCode ]	

protocol printString

  • Creates a new stream
  • Get its contents to be able to put in the first stream
    =>
printProtocol: protocol sourceCode: sourceCode
jecisc
jecisc commented Jun 6, 2019

Today I was doing a lot of changes on some variables in a deep hierarchy.

Current Pharo tools allow developers to find accesses to a variable in a class but not in a hierarchy so I had to make this snippet:

origin := AbstractWidgetPresenter.
variableName := #borderColor.
(origin slots detect: [ :e | e name = variableName ]) usingMethods collect: #methodClass as: Set

Created by Pharo Project

Released April 15, 2010

Organization
pharo-project
Website
pharo.org
Wikipedia
Wikipedia