> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
> Behalf Of Paul Gilmartin
> Sent: Saturday, November 18, 2006 8:00 PM
> To: [email protected]
> Subject: Re: assembler question (strong typing)
> 
> In a recent note, Charles Mills said:
> 
> > Date:         Sat, 18 Nov 2006 17:39:22 -0800
> >
> > You could do some of that with labeled USINGs.
> >
> But only some.  It requires the programmer to explicitly qualify
> each symbol use
> 
> I recall vaguely that the 709 (et. al.) assembler, FAP, had
> an operation called HED that did something like that.
> >
> > -----Original Message-----
> > From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
> Behalf
> > Of Gerhard Postpischil
> > Sent: Saturday, November 18, 2006 5:35 PM
> >
> > If John E. is lurking, there is one feature I'd really love to
> > see - qualifiers. Suppose you wish to combine two programs that
> > have duplicate variables - prefix each code section with a
> > qualifying name, and the assembler correctly resolves the local
> > references. In a way this was a precursor to the way unexposed
> 
> -- gil
/snip/

The flat namespace of HLASM is the real problem. There should be
a way to hide labels within a DSECT until the DSECT is anchored
with a USING. Until the owning DSECT is made addressable through
a USING, the symbol should not conflict with the same name of a
symbol defined in another DSECT. If more than one symbol of the
same name (in different addressable DSECTs), then issue an error
message. Otherwise, just use the symbol that is addressable. There
should be some syntactical sugar that indicates the programmer
knows there are multiple symbol matches and knows the consequences
of using the wrong symbol.

Jeffrey D. Smith
Principal Product Architect
Farsight Systems Corporation
700 KEN PRATT BLVD. #204-159
LONGMONT, CO 80501-6452
303-774-9381 direct
303-484-6170 FAX
http://www.farsight-systems.com/
comments are invited on my encryption project

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to