public override void performAction(ProseRuntime runtime) { // Create/fetc a possibly new word object representing the words. Word newWord = runtime.addWordFromRawWords(rawWordsToBindAsWord); // Bind the word using inheritence newWord.isa = new Word[] { parent }; }
public virtual void performAction(ProseRuntime runtime) { // Create/fetc a possibly new word object representing the words. Word newWord = runtime.addWordFromRawWords(rawWordsToBindAsWord); // Bind the word using inheritence Word[] newIsa = new Word[newWord.isa.Length + 1]; // Copy all the old inherited words. Array.Copy(newWord.isa, newIsa, newWord.isa.Length); newIsa[newWord.isa.Length] = parent; // Add this new one. newWord.isa = newIsa; }
virtual public void performAction(ProseRuntime runtime) { // Create/fetc a possibly new word object representing the words. Word newWord = runtime.addWordFromRawWords(rawWordsToBindAsWord); // Bind the word using inheritence Word[] newIsa = new Word[newWord.isa.Length + 1]; // Copy all the old inherited words. Array.Copy(newWord.isa, newIsa, newWord.isa.Length); newIsa[newWord.isa.Length] = parent; // Add this new one. newWord.isa = newIsa; }