Which makes it sound like there is in fact no way to do this in standard CL, to say nothing of other lisps.
Untested perl code to do this (taking a cons to be a [car, cdr] array reference):
AUTOLOAD {
unless ($AUTOLOAD =~ m/::c([ad]{1,})r$/) {
die "Attempted to call undefined function $AUTOLOAD";
}
my $ads = $1;
my $cons = shift;
while (my $c = chop $ads) {
$cons = $cons->[$c eq 'a' ? 0 : 1];
}
return $cons;
}
Example of a situation this feature might be useful: "I have this object with lots of properties which I don't necessarily know what they are. How do I define getter/setter methods on them?"Threads are not "standard" but the last thread-less Common Lisp just got them this month. Every maintained Common Lisp implementation today has Threads; and all support Bordeaux-Threads.
Show me a single mainstream language where threads are "standardized" other than Java?
My awkward phrasing was a reference to about 1:53 in this: http://www.youtube.com/watch?v=bCWA7uevo_Q
Before you go far and wide on speculation alone, you might stop and reread what has been posted so far, again. Both me and lnostdal submitted working CL solutions.
Example of a situation this feature might be useful: "I have this object with lots of properties which I don't necessarily know what they are. How do I define getter/setter methods on them?"
;; if you know the slot names
(slot-value object 'slot-name) ==> value
(setf (slot-value object 'slot-name) new-value)
;; if you don't.
;; let's define a class hierarchy first
CL-USER> (defclass foo () ((a) (b)))
#<STANDARD-CLASS FOO>
CL-USER> (defclass bar (foo) ((c) (d)))
#<STANDARD-CLASS BAR>
CL-USER> (defclass baz (bar) ((e) (f)))
#<STANDARD-CLASS BAZ>
;; use COMPUTE-SLOTS to get the class's slots
CL-USER> (closer-mop:compute-slots (find-class 'baz))
(#<STANDARD-EFFECTIVE-SLOT-DEFINITION A #x1A0F62C5>
#<STANDARD-EFFECTIVE-SLOT-DEFINITION B #x1A0F6305>
#<STANDARD-EFFECTIVE-SLOT-DEFINITION C #x1A0F6345>
#<STANDARD-EFFECTIVE-SLOT-DEFINITION D #x1A0F6385>
#<STANDARD-EFFECTIVE-SLOT-DEFINITION E #x1A0F63C5>
#<STANDARD-EFFECTIVE-SLOT-DEFINITION F #x1A0F6405>)
;; if you have an object and not a class, do the same
CL-USER> (closer-mop:compute-slots (class-of (make-instance 'baz)))
(#<STANDARD-EFFECTIVE-SLOT-DEFINITION A #x1A1202A1>
#<STANDARD-EFFECTIVE-SLOT-DEFINITION B #x1A1202E1>
#<STANDARD-EFFECTIVE-SLOT-DEFINITION C #x1A120321>
#<STANDARD-EFFECTIVE-SLOT-DEFINITION D #x1A120361>
#<STANDARD-EFFECTIVE-SLOT-DEFINITION E #x1A1203A1>
#<STANDARD-EFFECTIVE-SLOT-DEFINITION F #x1A1203E1>)
It's pretty straightforward to do what you want by writing a reader macro, but then you have to prefix your sexp with some special macro character.
If the prefix is a deal breaker there may be some deep read-macro voodoo that could do what you want but, but before doing research, I have to ask the obvious question: "Why?".
Incidentally, pg's On Lisp has a decent intro to reader macros (http://www.bookshelf.jp/texi/onlisp/onlisp_18.html)