{{ objsTemplate V002 Author: Steven Messenger Copyright (c) 2010 Steven Messenger See end of file for terms of use. ************** *Known Issues* ************** 0001 - Found in versions: V001 - Description: Not working yet! - Workaround: Wait for me to finish it! - Fixed in version: - Credit: Steven 0002 - Found in versions: V002 - Description: Need to compile using Sphinx to get the object address constants and object referencing working. - Workaround: Wait for someone else to modify other spin compilers! - Fixed in version: - Credit: Steven ********** *Versions* ********** V001 - Released: not yet - New features - everything - Bug fixes - N/A - Other improvements - N/A - API changes - N/A V002 - Released: not yet - New features - Uses object address constants and object referencing. To get the index of an object in the object table use "ConName=@objectName" in a con block. To not link an object use "objectName:"@objectName"" - Bug fixes - N/A - Other improvements - N/A - API changes - Removed everything to do with reference counting. - Changed init to work with the windowing system. *********************** *Possible Improvements* *********************** }} OBJ 'TEST : @"test" 'wanted to set up this so that objects that have a "@" don't get included in the binary TEST : "test" CON 'TEST_INDEX=@TEST 'had this working, I'll post the changes to sphinx necessary when I find what they were. TEST_INDEX=3 VAR long this PUB init(test_)|temp this.word[0]:=@@0 this.word[1]:=@this 'example of how to assign object assignOBJ(test_,TEST_INDEX) 'then just call a method in the object like normal test.test PRI assignOBJ(objAddr,position) word[@@0+4+position<<2]:=objAddr.word[0]-this.word[0] word[@@0+6+position<<2]:=objAddr.word[1]-this.word[1] 'other methods {{ TERMS OF USE: MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. }}