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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -