On Fri, Apr 6, 2012 at 9:02 AM, Steve Comstock <[email protected]>wrote:
> On 4/6/2012 9:53 AM, Sam Siegel wrote: > >> On Fri, Apr 6, 2012 at 8:45 AM, Phil Smith<[email protected]> wrote: >> >> Darn it, no matter what I've tried, I CANNOT get PL/I to handle a plist >>> [what I'd call] normally-marking the high bit on the last specified >>> parameter. If I use OPTIONAL, I get all the parameters, with zeroes for >>> the >>> ones that were omitted. That's not right, because I can't tell whether >>> they >>> were omitted or specified as zero. >>> >>> Ideas?? >>> >>> >> When using OPTIONAL, isn't the address in the parmlist set to zero instead >> of a valid address? Said differently, if the address in the parmlist is >> zero, the associated parameter is not available. >> > > But his dilema is that in C data itself may be passed in the parmlist; now > the dilema: is a pointer of zeros (address of parm is NULL) an indicator > of an omitted argument or a deliberate pass of a value of zeros. There > is no magic way for anyone to know: you have to establish conventions > and protocols to make these distinctions. And with the latest compilers > this conundrum exists in Assembler, COBOL, PL/I and C. > True - I missed that point. Thanks for the correction. > > > Adding flexibility always comes at a price of added complexity or > potential ambiguity (or both), right? > > > > >> >> >> -- >>> ...phsiii >>> >>> Phil Smith III >>> [email protected]<mailto:phil@**voltage.com <[email protected]>> >>> Voltage Security, Inc. >>> www.voltage.com<http://www.**voltage.com <http://www.voltage.com>> >>> (703) 476-4511 (home office) >>> (703) 568-6662 (cell) >>> >>> >>> ------------------------------**------------------------------** >>> ---------- >>> For IBM-MAIN subscribe / signoff / archive access instructions, >>> send email to [email protected] with the message: INFO IBM-MAIN >>> >>> >> ------------------------------**------------------------------** >> ---------- >> For IBM-MAIN subscribe / signoff / archive access instructions, >> send email to [email protected] with the message: INFO IBM-MAIN >> >> > > -- > > Kind regards, > > -Steve Comstock > The Trainer's Friend, Inc. > > 303-355-2752 > http://www.trainersfriend.com > > * To get a good Return on your Investment, first make an investment! > + Training your people is an excellent investment > > * Try our tool for calculating your Return On Investment > for training dollars at > > http://www.trainersfriend.com/**ROI/roi.html<http://www.trainersfriend.com/ROI/roi.html> > > > ------------------------------**------------------------------**---------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

