Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you programatically add a class variable to a class in Pharo?

How can you programatically add a class variable to a class in Pharo? It should be in the class builder, that's where you can add instance variables to a class. But I don't see it.

like image 859
nes1983 Avatar asked Dec 14 '11 16:12

nes1983


1 Answers

MyClass addClassVarNamed: 'MyClassVariable'
like image 76
Alex Jasmin Avatar answered Sep 19 '22 04:09

Alex Jasmin