home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / windows / x / 20186 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  2.4 KB

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