You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I mean, logically, I guess I can eval up an entire class in a BEGIN block or something ... but it'd be nice to be able to generate two or three methods dynamically all the same.
Ideally, I'd be able to do 'method $name (...) { ... }' but '*name = method (...) { ... }' or some similar syntax would also be fine, I just want some way to be able to generate two or three methods in a foreach loop or similar (and I'd like to be able to do it for attributes as well, ideally).
If we want to be able to close the class at the end of the 'class { ... }' block I have no issue with having to do whatever I'm doing in a 'BEGIN { ... }' block inside the class block ... but I really do need some way to do that.
The text was updated successfully, but these errors were encountered:
I mean, logically, I guess I can eval up an entire class in a BEGIN block or something ... but it'd be nice to be able to generate two or three methods dynamically all the same.
Ideally, I'd be able to do 'method $name (...) { ... }' but '*name = method (...) { ... }' or some similar syntax would also be fine, I just want some way to be able to generate two or three methods in a foreach loop or similar (and I'd like to be able to do it for attributes as well, ideally).
If we want to be able to close the class at the end of the 'class { ... }' block I have no issue with having to do whatever I'm doing in a 'BEGIN { ... }' block inside the class block ... but I really do need some way to do that.
The text was updated successfully, but these errors were encountered: