groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Re: getopt() as gtroff macro ?


From: Keith MARSHALL
Subject: Re: [Groff] Re: getopt() as gtroff macro ?
Date: Fri, 24 Sep 2004 09:45:12 +0100

Earlier, I wrote (from home):
>> Example:
>>
>>   .de foo
>>   .  getopt "foox" "ac:" "--all --check="
>>   .  ...
>>   ..
>
> Would the .getopt request not need to also include the arguments of the 
> invoking macro?  Thus, this example would become:
>
>   .de foo
>   .  getopt "foox" "ac:" "--all --check=" \\$@
>   .  ...
>   ..

Perhaps not, now that I've thought about it some more.  May I plead
lack of alertness, due to insomnia and getting up too early? ;-)

Clearly, since we are considering implementing .getopt as a built-in
request, rather than as a macro, it would be able to implicitly access
the arguments of its containing macro, in much the same way as .shift
must.  Of course, implementing it this way implies that it may only
be used within the scope of a macro, but then, why would anyone want
to use it anywhere else?

Best regards,
Keith.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]