smalltalk - Why instanceVariableNames is a String and not a more structured collection -


i'm smalltalk beginner, playing pharo , i'm curious choice in subclass message: keyword instancevariablenames wants able answer substrings message. wonder why doesn't expect more structured array, since needed collection of symbols.

object subclass: #experiment instancevariablenames: #(#foo #bar). 

my guessing @ historical reason: maybe not smalltalks have arrays or syntax differs slip inner message subclass. there other explanation?

in pharo vision document, 1 of points change , have real notion of instance variables. check these links if interested:


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -