home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sunquest!spades.aces.com!gavron
- From: gavron@spades.aces.com (Ehud Gavron 602-570-2000 x. 2546)
- Newsgroups: comp.os.vms
- Subject: Re: Not translating lexicals in symbols
- Message-ID: <17DEC199211172521@spades.aces.com>
- Date: 17 Dec 92 18:17:00 GMT
- References: <1992Dec16.123301.20677@yang.earlham.edu>
- Sender: news@sunquest.UUCP
- Reply-To: gavron@ACES.COM
- Organization: ACES Consulting Inc.
- Lines: 42
- News-Software: VAX/VMS VNEWS 1.4-b1
-
- In article <1992Dec16.123301.20677@yang.earlham.edu>, alanmoore@yang.earlham.edu writes...
- #I would like to have a symbol that has a lexical in it, but I don't want the
- #lexical to be translated until the symbol is used. For instance. make a symbol
- #out of:
- #
- # dir/since="''f$cvtime(,"absolute",)-10"
- #
- #The problem I am having is that the lexical either gets translated when I
- #define the symbol:
- # dd:==dir/since=""'f$cvtime(,"absolute",)-10"""
- # Yeilds:
- # DD == "DIR/SINCE="16-DEC-1992 12:20:49.58-10""
- #Or not at all:
- # dd:==dir/since=""""''f$cvtime(,"absolute",)-10"""
- # Yeilds:
- # DD == "DIR/SINCE="F$CVTIME(,absolute,)-10""
- #The closest I can get is:
- # DD == "DIR/SINCE="'f$cvtime(,ABSOLUTE,)-10""
- # Using:
- # dd:==dir/since="""'f$cvtime(,"absolute",)-10"""
- #But what I want is
- # DD == "DIR/SINCE="''F$CVTIME(,absolute,)-10""
- #I understand what causes the output in all these cases... I was wondering if
- #there is a way to get what I want.
-
- Not without putting the command in a command procedure and
- then having a symbol call up the command procedure.
-
- #
- #Thanks,
- #Alan Moore alanmoore@yang.earlham.edu
- #System/Network Manager, Postmaster (317)983-1437
- #Earlham College
- #Richmond, IN
- #Thanks,
-
- Ehud
-
- --
- Ehud Gavron (EG76)
- gavron@vesta.sunquest.com
- Here we are in America... when do we collect unemployment?
-