Created
February 24, 2011 15:45
-
-
Save markoa/842320 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sad shvatam šta si mislio sa lokalnom promenljivom, | |
# ja sam doduše u vidu imao samo objekat. Konceptualno, | |
# moja ideja bi mogla da si implementira kao: | |
class Transformable | |
def transform(sym) | |
self = self.send(sym) # => SyntaxError: compile error - Can't change the value of self | |
end | |
end | |
# ...samo što to ovako naravno nije moguće. Ali sigurno bi moglo na nivou C-a :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment