smalltalk
/
osmo-st-gsm
Archived
1
0
Fork 0

GSM48: Check if member variable exists...

This commit is contained in:
Holger Hans Peter Freyther 2010-12-01 23:59:03 +01:00
parent 3df7777c28
commit 42f49c05c3
1 changed files with 4 additions and 1 deletions

View File

@ -575,7 +575,10 @@ IEMessage subclass: GSM48MSG [
self error: 'Class should not be null for ', aName
].
self addInstVarName: aName asSymbol.
(self instVarNames includes: aName asSymbol)
ifFalse: [
self addInstVarName: aName asSymbol.
].
self compile: '%1 [ ^ %1 ]' % {aName}.
self Optional add: (aName asSymbol -> aClass).
]