home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 20719 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.3 KB  |  31 lines

  1. Newsgroups: comp.windows.x
  2. From: bryan@alex.com (Bryan Boreham)
  3. Path: sparky!uunet!pipex!demon!alex.com!bryan
  4. Subject: Re: Varargs functions
  5. Nntp-Posting-Host: felix
  6. Organization: Alex Technologies Ltd
  7. References:  <LJb=sL@engin.umich.edu>
  8. Apparently-To: mail2news@demon.co.uk
  9. Date: Mon, 4 Jan 1993 16:25:07 +0000
  10. Message-ID: <1993Jan4.162507.7847@alex.com>
  11. Sender: usenet@demon.co.uk
  12. Lines: 17
  13.  
  14. In article <LJb=sL@engin.umich.edu>, garath@engin.umich.edu (Scott Grosch) writes:
  15. |> 
  16. |> I have heard many times that it is bad practice to mix the varargs
  17. |> routines (such as XtVaSetValues) with the non varargs routines (such
  18. |> as XtSetArg() with XtSetValues).  I have looked through the code for
  19. |> these functions and it would appear that the varargs simply pull out
  20. |> each arg, put it in the formst that XtSetValues wants, and then calls
  21. |> that just like normal.  Would someone shed some light on this please?
  22.  
  23. You missed something: the functionality of XtVaSetValues is significantly
  24. better than XtSetValues, in that it can take typed arguments and convert
  25. them to the values that the widget wants (e.g. string->font).  However,
  26. the implementation is indeed straightforward, and I can't imagine why
  27. mixing them would cause a problem.  Maybe it might confuse someone who
  28. came along and read the code later.
  29.  
  30. Bryan.
  31.