Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles; site smu.UUCP Path: utzoo!watmath!clyde!burl!mgnetp!ihnp4!inuxc!pur-ee!uiucdcs!smu!pedz From: pedz@smu.UUCP Newsgroups: net.lang.c Subject: Re: Varargs in C - (nf) Message-ID: <13800006@smu.UUCP> Date: Mon, 3-Sep-84 14:18:00 EDT Article-I.D.: smu.13800006 Posted: Mon Sep 3 14:18:00 1984 Date-Received: Thu, 6-Sep-84 03:13:45 EDT References: <13800005@smu.UUCP> Lines: 22 Nf-ID: #R:smu:13800005:smu:13800006:000:940 Nf-From: smu!pedz Sep 3 13:18:00 1984 #R:smu:13800005:smu:13800006:000:940 smu!pedz Sep 3 13:18:00 1984 RE: William LeFebrev (sp?) William comments that without passing some sort of type information, then it is not possible, even when the number of arguments AND their total size is passed, to determine the sizes/types of all of the arguments. You comments are correct but it is possible for the programmer to pass an additional argument (probably the first) which contains the information he desires in the format that he feels is best. For example, printf passes this information implicitly with the format string. But execl does not pass this since it assumes that everything on the stack is a string. It only needs the "count" which is done by appending a trailing zero. Thus this information is not always needed. I feel that since the information is not always needed AND it is possible for the programmer to implement a type passing mechanism (and count) then it should not be part of the language. Perry Smith convex!smu!pedz