Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16869

Re: avcall, callback, trampoline, vacall, etc

Newsgroups comp.lang.c, comp.lang.c++, comp.unix.programmer, comp.lang.javascript, comp.lang.lisp
Subject Re: avcall, callback, trampoline, vacall, etc
From Paavo Helde <myfirstname@osa.pri.ee>
References <dfa26195-ed53-41e7-afb6-6f59d556a154@3g2000yqn.googlegroups.com>
Organization PKI
Message-ID <XnsA0F7F1EF5136Fmyfirstnameosapriee@216.196.109.131> (permalink)
Followup-To comp.lang.c
Date 2012-10-25 15:46 -0500

Cross-posted to 5 groups.

Followups directed to: comp.lang.c

Show all headers | View raw


gnuist007@hotmail.com wrote in news:dfa26195-ed53-41e7-afb6-6f59d556a154@
3g2000yqn.googlegroups.com:

> Dear Programming Gurus,
> 
> These concepts are rather well talked about .. over the internet and
> usenet, however, I cant find any clear explanation.
> 
> avcall, callback, trampoline, vacall, etc
> 
> I looked in a book of C programming, ie k&r and also the rationale for
> C, an old copy and could not find any explanation.
> 
> I know that javascript books talk a lot about callbacks and there is
> the style of programming involving writing callbacks and registering
> them. Unfortunately, in the age when I took my C class, there was no
> discussion along these lines.
> 
> Can anyone give clear definition, example, benefits, variations,
> origin or citation to a paper where it originated and explained first,
> as well as some modern text that does the better than most job of
> illustrating it and its applications.

I think you included comp.lang.c++ in the posted newsgroups by a mistake. 
In C++, the callbacks have been mostly replaced by virtual functions 
(usually declared in abstract base classes). Also the vacall tricks for 
passing multiple arguments at once are not really needed in C++, you can 
always pass a suitable container of (possibly variant) arguments. Anyway, 
in this day and this age, you should look in wikipedia first instead of 
K&R books. 

HTH
Paavo

PS. Followup set to comp.lang.c

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

avcall, callback, trampoline, vacall, etc gnuist007@hotmail.com - 2012-10-25 12:24 -0700
  Re: avcall, callback, trampoline, vacall, etc James Kuyper <jameskuyper@verizon.net> - 2012-10-25 16:04 -0400
    Re: avcall, callback, trampoline, vacall, etc Gene Wirchenko <genew@ocis.net> - 2012-10-25 14:55 -0700
  Re: avcall, callback, trampoline, vacall, etc Paavo Helde <myfirstname@osa.pri.ee> - 2012-10-25 15:46 -0500
  Re: avcall, callback, trampoline, vacall, etc Cortez <relativeflux@hotmail.co.uk> - 2012-10-25 13:47 -0700
  Re: avcall, callback, trampoline, vacall, etc Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-10-25 20:18 -0600
    Re: avcall, callback, trampoline, vacall, etc gnuist007@hotmail.com - 2012-10-26 10:11 -0700
    Re: avcall, callback, trampoline, vacall, etc "Pascal J. Bourguignon" <pjb@informatimago.com> - 2012-10-28 18:56 +0100
    Re: avcall, callback, trampoline, vacall, etc Rivka Miller <rivkaumiller@gmail.com> - 2012-11-05 16:28 -0800
  Re: avcall, callback, trampoline, vacall, etc Les Cargill <lcargill99@comcast.com> - 2012-10-26 07:27 -0500
    Re: avcall, callback, trampoline, vacall, etc gnuist007@hotmail.com - 2012-10-26 10:16 -0700
      Re: avcall, callback, trampoline, vacall, etc Les Cargill <lcargill99@comcast.com> - 2012-10-26 12:42 -0500
      Re: avcall, callback, trampoline, vacall, etc James Kuyper <jameskuyper@verizon.net> - 2012-10-26 14:08 -0400

csiph-web