home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!murignis!horus.ap.mchp.sni.de!breslau!david
- From: david@breslau.ap.mchp.sni.de (David Smyth)
- Newsgroups: comp.windows.x
- Subject: Re: Q: Wcl2.3 experimental external interface?
- Date: 14 Dec 1992 14:53:10 GMT
- Organization: Siemens-Nixdorf AG
- Lines: 41
- Message-ID: <1gi74mINNpd0@horus.ap.mchp.sni.de>
- References: <1992Dec11.201438.11505@rchland.ibm.com>
- NNTP-Posting-Host: breslau.ap.mchp.sni.de
-
- jay@vnet.ibm.com writes:
- >I'm looking for more information about the experimental external interface
- >mentioned in Wcl23.Announce.
- >
- >A colleague of mine created a handy tool called ``mish'' (Motif Interface
- >SHell) based on tcl 4.0 and wcl 1.06, I believe. It was used to prototype
- >a lot of interfaces but those interfaces were eventually rewritten in C and
- >mish ended up laying on the shelf.
-
- This type of tool is the intended client of the "experimental external
- interface" mentioned in Wcl23.Announce:
-
- o Experimental external interface to the LateBinder mechanism, which
- is intended to support people using Wcl to provide interfaces to
- interpretive environments (like perl).
-
- The external interface to the late binder mechanism remains identical for
- Wcl 2.4 (released Friday).
-
- I suppose the best place to look for information on the Late Binder is
- WcLateBind.c and WcCreateP.h and WcCreate.h. Especially, read the comments
- titled "Experimental External Interfaces to WcLateBinder" in WcCreateP.h.
-
- The basic idea is to allow all callback invocations to be intercepted
- by a client (such as "mish") and sent to an interpreter (like tcl or
- perl or...). Wcl uses this interception to resolve methods: The Wcl
- Late Binder looks to find the object to be manipulated by a given
- method invocation. The late binder uses the callback name and object
- class name to find the object and invoke the appropriate callback method.
-
- The Hook function, registered with Wcl using WcAddLateBinderHook(),
- gets a WcLateBind object to use to resolve the callback.
-
- NOTE: Actions are not directly supported with the late binder. You
- can, of course, provide actions which invoke callbacks...
-
- ---------------------------------------------------------------------------
- David E. Smyth David.Smyth@ap.mchp.sni.de
- Object/X Researcher AP 154, Carl-Wery-Str 22, Munich 83 Germany
- Research Grant provided by Esprit Investments Ltd,
- major sponsor Siemens Nixdorf Informationssysteme AG
-