[Info-vax] DCL and scripting
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Thu Dec 13 08:25:50 EST 2018
On 2018-12-12, Arne Vajhøj <arne at vajhoej.dk> wrote:
> On 12/12/2018 8:52 AM, Simon Clubley wrote:
>>
>> Would the following be nicer ?
>>
>> cc /obj=z sys$input << "****THE END****"
>> #include <stdio.h>
>>
>> int main()
>> {
>> printf("Hello world!\n");
>> return 0;
>> }
>> ****THE END****
>>
>> link z
>> run z
>> exit
>
> That is about as obfuscated as the deck version, but it has
> one advantage over it - it is not required to bring punched
> cards up in the explanation.
>
I should also point out that I was suggesting how DCL could be
enhanced to make things cleaner. I wasn't suggesting some existing
functionality (before someone attempts to use it.)
My first example wasn't completely clear on that. Sorry.
I still prefer my second example as a way of getting rid of the
leading $ characters if DCL were to be enhanced. I wouldn't
mind structured loops and iterators as well... :-)
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world
More information about the Info-vax
mailing list