Pharo 中 'Installer squeaksource' 的等价物是什么?
What is the equivalent of 'Installer squeaksource' in Pharo?
我想在 Pharo 的上下文中执行此操作,最初是为了 Squeak。
Installer squeaksource
project: 'MetacelloRepository';
install: 'ConfigurationOfMagritte2'.
(Smalltalk at: #ConfigurationOfMagritte2) project latestVersion load: 'Magritte-Seaside'.
此代码有效:
Gofer new
squeaksource: 'MetacelloRepository';
configurationOf: 'Magritte2';
load.
(Smalltalk at: #ConfigurationOfMagritte2) project latestVersion load: 'Magritte-Seaside'.
还有其他方法,但这是最"direct"翻译:)
这不会导致最新版本的 Pharo 中的工作代码。 Magritte2 旧且不受支持。使用 Magritte3。这是在 Smalltalkhub 上维护的。
对于今天在 Pharo 6.x 中有同样问题的任何人 - 当前(写作时为 9.0):
Metacello new
baseline: 'Magritte';
repository: 'github://magritte-metamodel/Magritte';
load
我想在 Pharo 的上下文中执行此操作,最初是为了 Squeak。
Installer squeaksource
project: 'MetacelloRepository';
install: 'ConfigurationOfMagritte2'.
(Smalltalk at: #ConfigurationOfMagritte2) project latestVersion load: 'Magritte-Seaside'.
此代码有效:
Gofer new
squeaksource: 'MetacelloRepository';
configurationOf: 'Magritte2';
load.
(Smalltalk at: #ConfigurationOfMagritte2) project latestVersion load: 'Magritte-Seaside'.
还有其他方法,但这是最"direct"翻译:)
这不会导致最新版本的 Pharo 中的工作代码。 Magritte2 旧且不受支持。使用 Magritte3。这是在 Smalltalkhub 上维护的。
对于今天在 Pharo 6.x 中有同样问题的任何人 - 当前(写作时为 9.0):
Metacello new
baseline: 'Magritte';
repository: 'github://magritte-metamodel/Magritte';
load