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


Groups > comp.lang.javascript > #16904

Re: avcall, callback, trampoline, vacall, etc

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From James Kuyper <jameskuyper@verizon.net>
Newsgroups comp.lang.c, comp.lang.c++, comp.unix.programmer, comp.lang.javascript, comp.lang.lisp
Subject Re: avcall, callback, trampoline, vacall, etc
Date Fri, 26 Oct 2012 14:08:39 -0400
Organization A noiseless patient Spider
Lines 22
Message-ID <508AD1A7.5060700@verizon.net> (permalink)
References <dfa26195-ed53-41e7-afb6-6f59d556a154@3g2000yqn.googlegroups.com> <k6dvjn$r9j$1@dont-email.me> <bde60f28-41e5-465a-862f-81844bb2d428@j12g2000vbm.googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
Injection-Info mx04.eternal-september.org; posting-host="d8fef572ea43a1acd556896aa70d63af"; logging-data="28588"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WpN9b4JeHDoqLQqMm4BXlJ5BDbgihjYM="
User-Agent Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
In-Reply-To <bde60f28-41e5-465a-862f-81844bb2d428@j12g2000vbm.googlegroups.com>
Cancel-Lock sha1:D0zw9Yis/gxNJYYe0AGl6aau5JE=
Xref csiph.com comp.lang.c:27733 comp.lang.c++:19262 comp.unix.programmer:3669 comp.lang.javascript:16904 comp.lang.lisp:11766

Cross-posted to 5 groups.

Show key headers only | View raw


On 10/26/2012 01:16 PM, gnuist007@hotmail.com wrote:
...
> For starters, I always start with google and wikipedia. I could not
> find any examples.
> 
> I am asking here so that you guys can give me whetted and good
> examples for a newbie.

I pointed out that qsort() and bsearch() are good simple examples of how
callbacks are used, and I recommended searching
Wikipedia.<http://en.wikipedia.org/wiki/Callback_%28computer_programming%29>
has two completely filled out toy examples of code using callback
functions. Joe Pfeiffer pointed you at a tutorial for FUSE, which is a
more complicated system making use of callbacks. Les Cargill gave you a
basic template for implementing callbacks in C.

Callback are a relatively simple concept. Everything that makes a
callback be a callback is present in both Wikipedia's examples and in
Les Cargill's template. If there's something more that you need, that
wasn't provided by those examples, then you're looking for something
more than just a callback. Perhaps you could explain in more detail what
you're looking for that was missing from these examples?

Back to comp.lang.javascript | Previous | Next — Previous 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