forked from jnthn/6model
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
oodles of fixes. many many more to come.
- Loading branch information
Showing
17 changed files
with
127 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,45 +1,47 @@ | ||
|
|
||
| function makeKnowHowREPR () | ||
| local KnowHowREPR = {}; | ||
| local mt = { __index = KnowHowREPR }; | ||
| function makeKnowHOWREPR () | ||
| local KnowHOWREPR = {}; | ||
| local mt = { __index = KnowHOWREPR }; | ||
|
|
||
| local makeInstance = function () | ||
| local Instance = {}; | ||
| local mt = { __index = Instance }; | ||
| function Instance.new(STable) | ||
| local instance = {}; | ||
| instance.STable = STable; | ||
| instance.class = "KnowHOWREPR"; | ||
| return setmetatable(instance, mt); | ||
| end | ||
| return Instance; | ||
| end | ||
| local Instance = makeInstance(); | ||
|
|
||
| function KnowHowREPR.new() | ||
| function KnowHOWREPR.new() | ||
| return setmetatable({}, mt); | ||
| end | ||
| function KnowHowREPR:type_object_for(TC, MetaPackage) | ||
| function KnowHOWREPR:type_object_for(TC, MetaPackage) | ||
| local STable = SharedTable.new(); | ||
| STable.HOW = MetaPackage; | ||
| STable.REPR = self; | ||
| STable.WHAT = Instance.new(STable); | ||
| return STable.WHAT; | ||
| end | ||
| function KnowHowREPR:instance_of(TC, WHAT) | ||
| function KnowHOWREPR:instance_of(TC, WHAT) | ||
| local Object = Instance.new(WHAT.STable); | ||
| Object.Methods = {}; | ||
| Object.Attributes = List.new(); | ||
| return Object; | ||
| end | ||
| function KnowHowREPR:defined(TC, Obj) | ||
| function KnowHOWREPR:defined(TC, Obj) | ||
| if (Obj.Methods ~= nil) then | ||
| return true; | ||
| else | ||
| return false; | ||
| end | ||
| end | ||
| function KnowHowREPR:hint_for(TC, ClassHandle, Name) | ||
| function KnowHOWREPR:hint_for(TC, ClassHandle, Name) | ||
| return Hints.NO_Hint; | ||
| end | ||
| return KnowHowREPR; | ||
| return KnowHOWREPR; | ||
| end | ||
| KnowHowREPR = makeKnowHowREPR(); | ||
| KnowHOWREPR = makeKnowHOWREPR(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters