New issue report by jnwhiteh:
Using the Ace notion of ["*"] keys to allow for metatable default
definitions when registering defaults:
local defaults = {
profile = {
someTable = {
["*"] = {
["*"] = "monkey",
}
}
}
assert(db.profile.someTable.hello.text == "monkey")
assert(db.profile.someTable.hello.other == "monkey")
Issue attributes:
Status: Accepted
Owner: jnwhiteh
Labels: Type-Enhancement Priority-Medium Milestone-Release1.0
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Comment #1 by jnwhiteh:
Here's a patch that should cover all forms of nastiness
Attachments:
Issue21.diff 2.2 KB
Comment #2 by jnwhiteh:
(No comment was entered for this change.)
Issue attribute updates:
Status: Patch-Written
Comment #3 by jnwhiteh:
There's a bad line in there, make sure you remove the extra metatable copyTable.