Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
lots more pass
  • Loading branch information
diakopter committed Nov 6, 2011
1 parent efc1cca commit 3215eb1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
8 changes: 7 additions & 1 deletion lua/runtime/Metamodel/KnowHOW/KnowHOWBootstrapper.lua
Expand Up @@ -43,7 +43,13 @@ function KnowHOWBootstrapper.Bootstrap ()
if (HOW.Methods[name] ~= nil) then
return HOW.Methods[name];
else
error("No method '"..name.."' found in knowhow '"..(HOW.Name or "(no name available)").."'");
local knowhowName;
if (type(HOW.Name) == "table") then
knowhowName = Ops.unbox_str(TC, HOW.Name);
else
knowhowName = HOW.Name or "(no name available)";
end
error("No method '"..name.."' found in knowhow '"..knowhowName.."'");
end
end);
KnowHOWMeths.compose = CodeObjectUtility.WrapNativeMethod(
Expand Down
6 changes: 1 addition & 5 deletions lua/runtime/Metamodel/Representations/P6hash.lua
Expand Up @@ -35,11 +35,7 @@ function makeP6hash ()
return Object;
end
function P6hash:defined(TC, O)
if (Obj.Storage ~= nil) then
return true;
else
return false;
end
return O.Storage ~= nil;
end
function P6hash:get_attribute(TC, I, ClassHandle, Name)
if (I.Storage ~= nil or I.Storage[ClassHandle] == nil) then
Expand Down
6 changes: 1 addition & 5 deletions lua/runtime/Metamodel/Representations/P6opaque.lua
Expand Up @@ -35,11 +35,7 @@ function makeP6opaque ()
return Object;
end
function P6opaque:defined(TC, O)
if (Obj.Storage ~= nil) then
return true;
else
return false;
end
return O.Storage ~= nil;
end
function P6opaque:get_attribute(TC, I, ClassHandle, Name)
if (I.Storage == nil or I.Storage[ClassHandle] == nil) then
Expand Down

0 comments on commit 3215eb1

Please sign in to comment.