Re: LISP code example matching an abstract construct



Juan R. wrote:
Sorry if this question sound a bit strange or off-topic.

I use notation (operator argument) --> result

e.g. (SQR 2) --> 1.4142...

I would know if anyone used both next -with A and B generic simbols-

(A B) --> C

(B A) --> D

in a LISP-Scheme program.

I might have, in some program using the object system or classes.

Firstly, it's not uncommon to use the name of a class for instances.
E.g.:

(defmethod frobnicate ((widget widget)) ;; (instance class)
...)


It's not uncommon to have a 1:1 two-way navigable relationship between
classes. The accessors to retrieve the links could be named after the
class.

So for instance

(engine car) ;; accessor to fetch the car's engine
(car engine) ;; accessor to fetch engine's car

ENGINE and CAR are accessors, class names and instance names, all at
the same time.

.



Relevant Pages

  • Re: 94 Explorer VIN X V6 runs for a minute and dies
    ... bright when the car is running as when the car is cranking but dead. ... Can you keep the engine running indefinitely if you keep spraying the ... allowing them to dispense the fuel? ... If I hear the clicking do I still need to do the lamp test? ...
    (rec.autos.makers.ford.explorer)
  • NASCAR RULES...no es verdad ?
    ... GENERAL CAR AND BODY REQUIREMENTS ... Car must be strictly stock. ... The stock floor pan, fire walls, trunk, trunk floor, (see fuel ... DETAILED ENGINE REQUIREMENTS ...
    (rec.autos.sport.nascar)
  • Re: OT: Blast From The Past - steam - hot and cold
    ... Cold engine powers car with efficiency ... Cylinder injection of a heat transfer fluid followed ... steam power being the most obvious ...
    (alt.guitar.amps)
  • Re: Is Sirius available in Mr. Bean cars?
    ... How about a car that runs on water, ... (they convert 100% of the potential power of the electricity to ... the power in the system between the gas engine, two generators, ... electricity in the batteries consumed by the low-speed acceleration. ...
    (alt.fan.howard-stern)
  • Re: 94 Explorer VIN X V6 runs for a minute and dies
    ... I would hook up the lamp just to see that it glows as bright when the car is running as when the car is cranking but dead. ... It is possible that a bunch of dirt got to rail and got distributed to the injectors and that they are plugged, thus not allowing them to dispense the fuel? ... I only suggest this because the engine ran when you sprayed the cleaner. ...
    (rec.autos.makers.ford.explorer)