oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
| |
|
| |
|
| |
|
|
| 14 Aug 2012 05:13 AM |
| Something to do with coroutines or metatables I guess. Nothing I want to do :/ |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2012 05:21 AM |
I bet this is a loophole in the rules so don't consider it a solution :)
loadstring(string.reverse([[dne )"ih"(tnirp od eurt elihw]])) |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2012 05:22 AM |
print("a certain string endlessly")
kthx |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2012 05:23 AM |
| You're not allowed to create functions, and loadstring creates a function. |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2012 05:24 AM |
@trappingnoobs
If you were supposed to print "a certain string endlessly", then it'd have been put in quotes, duh. |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Aug 2012 05:29 AM |
| you just did put it in quotes |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2012 05:31 AM |
I did put it in quotes in my previous post, but my previous post isn't the challenge itself, duh.
The challenge you're trying to solve is in the first post. |
|
|
| Report Abuse |
|
|
| |
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
| |
|
|
| 14 Aug 2012 05:42 AM |
print(setmetatable({}, {__index = function() print("Hello") return "Hello" end}))
|
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
|
| 14 Aug 2012 05:43 AM |
@trappingnoobs
They're not necessarily functions.
Take the __index metamethod, for example. You can set it to a table.
However, I don't really like the word "metamethod", because that would imply they are methods about methods, which is definitely not true. |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2012 05:43 AM |
oh wait
print(setmetatable({}, {__index = function(t, k) print(k) return t[k] end})["Hello"]) |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2012 05:44 AM |
@trappingnoobs
You are not allowed to create functions, remember. |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2012 05:45 AM |
""metamethod", because that would imply they are methods about methods"
it implies they are methods regarding additional information |
|
|
| Report Abuse |
|
|
|
| 14 Aug 2012 05:51 AM |
| bleh can't think of a way to make a metamethod recursive in one statement. :( |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
| |
|
|
| 14 Aug 2012 06:14 AM |
| why bump twice in a minute on such a slow forum? |
|
|
| Report Abuse |
|
|