Filed on: {Indigo}LoopsCourse>LoopsCourseSummary.bravoLast edited: GB June 14, 1983 6:47 PMLOOPS Course SummaryAccessing Objects and Variables($ name) evaluates to the object or class named name.($! atom)evaluates to the object or class whose name is the value of atom(@ accessExpr)evaluates to the value of the instance variable, class variable, or property of thesereferred to by accessExpr in self.(@ obj accessExpr)evaluates to the value of the instance variable, class variable, or property of thesereferred to by accessExpr in obj(_@ accessExpr newValue)sets the value of the variable accessed by accessExpr in self to newValue(_@ obj accessExpr newValue)sets the value of the variable accessed by accessExpr in obj to newValueaccessExpr is the concatenation of any combination of the following with evaluation strictly left to right:ivNameinstance variable ivName::cvNameclass variable cvName:,propNamevalue of property propName.selectorvalue returned by sending the unary message selectorN.B.a ! (bang) after any of the puctuation in the four lines above will cause the atom following it to be evaluatedand that value to be used as the name. Within an accessExpr a lisp variable is prefixed with a backslash "\"(i.e. ::fee.fie:!\foe:,fum will get the value of CV fee of self and send it the message fie, then it will get the instancevariable whose name is the value of the lisp variable foe from the object returned by the message fie, then itwill get the value of property fum of that IV)Defining and Editing Classes(DC className supersList)(_ ($ Class) New className supersList)create a class with name className andsupers supersList(EC className)(_ ($ className) Edit)edit the class definition of class classNameDefining and Editing Methods(DM className selector)creates a function with the name className.selector to be used by the methodcalled by selector and puts you in the editor(DM className selector fnName)causes the function with the name fnName to be used by the method calledby selector(EM className selector)edit the method used by selector in class classNameCreating, Editing, and Inspecting Instances(_ class New)creates a new instance of class(_ class New 'name)creates a new instance of class with the name name(_ obj Edit)(EI obj)edit obj(_ obj Inspect)(INSPECT obj)create an inspect window for obj(_New class selector arg1 ... argN)create a new instance of class and sends it the the message selector witharguments arg1 ... argNSending Messages(_ obj selector arg1 ... argN)send obj the message selector with arguments arg1 ... argN(_Super obj selector arg1 ... argN)in method selector invokes super method for that selector with argumentsarg1 ... argN(_SuperFringe obj selector arg1 ... argN)invokes all the immediate super methods of obj for that selector with thearguments arg1 ... argN(_! obj expr arg1 ... argN)send obj the message whose selector is the value of expr with thearguments arg1 ... argNActive Values#(localState getFn putFn)localState is where the value is stored (this may be another active value)getFn is the function called on read access and putFn is called on write accessthe value returned by getFn in the value of the get operation and putFn hasresponsibility for changing the value of localState using the function PutLocalState dpX= c&"]K^Bqi Y_YrX X2psp'sp Vsp=s U*ps pUSs p R"s pUPs ps Opsp+s p s Mpsp+s psps L p`2Jsps2I psp s2Gpsps2Fpsp,s D}poB2s p1 Aurprp!rp?6rp5>mrp ;;er 9psps psps p5sp58]s 6psps p5#s 3y3r 2Lpspsp" !sp" 0 sp /Dspsp" "sp" -s , >spsp'%sp sp'=/ ;sp sp'sps :'pspsp's 8p sp){> 7s 3`4r 2pspKsp 1 /W .G ,<2*r2){r '2&sk $j #j2!o b 2l r Rpsp8>spJ 3 B spF spH CT TIMESROMAN  HELVETICA  TIMESROMAN  TIMESROMAN  j/]8 summary.bravoSannellaDecember 7, 1983 2:54 PM