From 405d7532f753f73f7af2c88a41c35ac011f3a24e Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 12 Feb 2019 15:30:38 +0000 Subject: [PATCH] slot: Update class comments --- src/Slot-Core/InstanceVariableSlot.class.st | 2 +- src/Slot-Examples/ComputedSlot.class.st | 2 +- src/Slot-Examples/ExampleSlotWithState.class.st | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Slot-Core/InstanceVariableSlot.class.st b/src/Slot-Core/InstanceVariableSlot.class.st index 8d57c737961..5bf8f6496ff 100644 --- a/src/Slot-Core/InstanceVariableSlot.class.st +++ b/src/Slot-Core/InstanceVariableSlot.class.st @@ -1,6 +1,6 @@ " I add some special behavior: - - I override bytecode generation to generate ivar read and write bytecodes + - I override bytecode generation to generate ivar read and write bytecodes - I print the definition as #name " Class { diff --git a/src/Slot-Examples/ComputedSlot.class.st b/src/Slot-Examples/ComputedSlot.class.st index 1e6a52653ec..028eebe07bf 100644 --- a/src/Slot-Examples/ComputedSlot.class.st +++ b/src/Slot-Examples/ComputedSlot.class.st @@ -9,7 +9,7 @@ e.g. make a class lile this: Object subclass: #TT slots: { #i => ComputedSlot with: [ :o | o class methods size ] } classVariables: { } - category: 'TT' + package: 'TT' " Class { #name : #ComputedSlot, diff --git a/src/Slot-Examples/ExampleSlotWithState.class.st b/src/Slot-Examples/ExampleSlotWithState.class.st index b1a694b09e1..84f24b5b773 100644 --- a/src/Slot-Examples/ExampleSlotWithState.class.st +++ b/src/Slot-Examples/ExampleSlotWithState.class.st @@ -6,9 +6,9 @@ slot, similar to a class variable. I just overide the methods for reflective read and write (#read and #write:to:), I do not bother to emit bytecode myself but rely on the fallback that the compiler will generate code for reflective read and write (see the emit* method of my superclass). -PharoClassInstaller make: [ :builder | +Smalltalk classInstaller make: [ :builder | builder name: #A; - slots: { TestSlot named: #iv }; + slots: { ExampleSlotWithState named: #iv }; category: #Playground ].