From owner-freebsd-chat Thu Jan 4 2:46:41 2001 From owner-freebsd-chat@FreeBSD.ORG Thu Jan 4 02:46:39 2001 Return-Path: Delivered-To: freebsd-chat@freebsd.org Received: from nothing-going-on.demon.co.uk (unknown [194.128.198.234]) by hub.freebsd.org (Postfix) with ESMTP id 2668937B400 for ; Thu, 4 Jan 2001 02:46:39 -0800 (PST) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.11.0/8.11.0) id f04Ah0S02718; Thu, 4 Jan 2001 10:43:00 GMT (envelope-from nik) Date: Thu, 4 Jan 2001 10:42:59 +0000 From: Nik Clayton To: j mckitrick Cc: chat@freebsd.org Subject: Re: burgers and thunks ??? Message-ID: <20010104104259.A2645@canyon.nothing-going-on.org> References: <20010103181718.B41405@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010103181718.B41405@dogma.freebsd-uk.eu.org>; from jcm@FreeBSD-uk.eu.org on Wed, Jan 03, 2001 at 06:17:19PM +0000 Organization: FreeBSD Project Sender: nik@nothing-going-on.demon.co.uk Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Jan 03, 2001 at 06:17:19PM +0000, j mckitrick wrote: > Okay, this is gonna sound weird, but I was looking for an email I apparently > deleted that was explaining the concept of a thunk. I found the > explanation, but I vaguely remember a reference to a term starting with the > word 'burger' that also was a programming technique used years ago. Is > their any such thing as a 'burgermaster'? Or does anyone have any idea what > I might be talking about? :) Oh God, that brings back memories from my youth, writing Windows 3.0 applications for fun and profit. I first read about this in one of the Charles Petzold books. BURGERMASTER was the name of a segment maintained by Windows that contained a table that mapped 'handles' (fake 'pointers' that most of the Windows 3.x API returned when you wanted to manipulate something) to actual memory locations. As I recall, if you wanted to manipulate the structure that contained information about a window, you would use an API function to get the Handle, lock the Handle, convert the Handle to a pointer (which is what the BURGERMASTER segment was for), diddle the structure, then unlock the Handle. Windows maintained the BURGERMASTER segment itself. The name was just a local restaurant of some of the Windows developers. Doubtless a Google search will turn up more. N -- Internet connection, $19.95 a month. Computer, $799.95. Modem, $149.95. Telephone line, $24.95 a month. Software, free. USENET transmission, hundreds if not thousands of dollars. Thinking before posting, priceless. Somethings in life you can't buy. For everything else, there's MasterCard. -- Graham Reed, in the Scary Devil Monastery To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message