Talk:Callback (computer programming)

This is an old revision of this page, as edited by 132.210.56.50 (talk) at 15:21, 28 February 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 19 years ago by 132.210.56.50 in topic This article is difficult to understand

This topic needs more general discussion of callbacks and their use, with simpler examples that explain the concept of a callback. I am rewriting most of this article to include much more information.

Example

Example: return

Well, why these functions return int, when counter assumes they return void?

Example: count

Why 9 is before 10, in hex?

  • Fixed: temporay loss of sanity. Dysprosia 12:50, 15 Dec 2003 (UTC)

Need to keep example code very simple

Ldo, I'm afraid that your changes (on 17 Sep 2004) have really gone farther than needed. This page is now overly complicated and reads more of a disertation on sorting algorithms rather than a simple encyclopedic article on the callback function. I think keeping any example to the minimal possible to show the concept of callback is best, and leave the lengthy programming textbook and best practices explanation elsewhere. Also some of your text is too gramatically casual, especially the paragraphs full of questions. - Dmeranda 06:54, 15 Oct 2004 (UTC)

The "language extension and adaptation" closure method

The article currently gives the following as one way to do callbacks:

Some systems have built-in programming languages to support extension and adaptation. These languages provide callbacks without the need for separate software development tools.

Can someone turn this into a more concrete claim? What are people thinking of here? LISP macros, perhaps? --Ryguasu 29 June 2005 19:00 (UTC)


This article is difficult to understand

I'm a software engineer (a real one (yeah, I know this is a very inflammatory way to start ;))) and I have difficulties understanding this article. For example, in the Motivation section it is mentioned that the code of the iterator must be duplicated everywhere the list must be iterated over. Why? Are we talking about the machine code (even then, I wouldn't understand why it would need to be inlined) or about the high-level language code? E.g. in Java, when I have to iterate over a Collection, I don't see myself duplicating any code. --132.210.56.50 15:21, 28 February 2006 (UTC)Reply