🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Steven Kearns Mon, 21 Jan 1991 17:33
preprocessing
#793
Author: Steven Kearns
Date: Mon, 21 Jan 1991 17:33
13 lines
778 bytes
Given:
#define one(a, b)  a b

What does "one((c,d), {c,d})" expand to?
If {} are considered parentheses, then arm 16.3 would suggest
"(c,d) {c,d}", otherwise I might expect an error because
it is interpreted as one("(c,d)", "{c", "d}").


********************************************************
* Steven Kearns            ....uunet!softrue!kearns    *
* Software Truth           softrue!kearns@uunet.uu.net *
********************************************************
Re: preprocessing
#794
Author: Norman Diamond
Date: Tue, 22 Jan 1991 05:30
12 lines
1130 bytes
In article <1.UUL1.3#8618@softrue.UUCP> kearns@softrue.UUCP (Steven Kearns) writes:

>#define one(a, b)  a b
>What does "one((c,d), {c,d})" expand to?
>If {} are considered parentheses, then arm 16.3 would suggest
>"(c,d) {c,d}", otherwise I might expect an error because
>it is interpreted as one("(c,d)", "{c", "d}").

The "otherwise" is correct; you should get an error.
--
Norman Diamond       diamond@tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads