Skip to content
Browse files

Better practice in dmodule example

  • Loading branch information...
1 parent 04a02da commit d4dcbba0e99b2ba86968a036408b99207ccf00c1 @JakobOvrum committed Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 example/dmodule/dmodule.d
View
2 example/dmodule/dmodule.d
@@ -11,7 +11,7 @@ LuaTable initModule(LuaState lua)
{
enum qualifiedName = "core.cpuid." ~ member;
static if(__traits(compiles, mixin(qualifiedName)) && isSomeFunction!(mixin(qualifiedName)))
- lib[member] = &mixin("core.cpuid." ~ member);
+ lib[member] = &mixin(qualifiedName);
}
auto datacache = lua.newTable();

0 comments on commit d4dcbba

Please sign in to comment.
Something went wrong with that request. Please try again.