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