You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: General/Extensions.md
+2
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@
14
14
15
15
Pharo includes a system of extension methods. This feature allows the developer to add behavior (but not state) to existing objects in Pharo.
16
16
17
+
> Note that it is only possible to add methods (behavior) as extension and not variables (state)
18
+
17
19
There is no syntactic difference between calling an extension method and calling a method declared in the class. The main difference between methods and extension methods is that extension methods are stored in a different package than the class they are implemented on.
0 commit comments