Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site decvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!harpo!decvax!minow From: minow@decvax.UUCP (Martin Minow) Newsgroups: net.lang.c Subject: Forming composite tokens using /**/ Message-ID: <476@decvax.UUCP> Date: Wed, 2-May-84 22:12:21 EDT Article-I.D.: decvax.476 Posted: Wed May 2 22:12:21 1984 Date-Received: Fri, 4-May-84 02:24:34 EDT References: <1230@brl-vgr.ARPA> Organization: DEC UNIX Engineering Group Lines: 21 Doug Gwyn noted that the C preprocessor allows you to form composite tokens by using a "null" comment in the macro definition: #define token(a, b) a/**/b ... ... token(foo, bar) generates "foobar" I think this is specific to the particular implementation of the pre-processor and may not be transportable. There have been mumblings in the C standards documentation as to how #defines and comments will work, but I wouldn't count on the above hack surviving. Flames to the net -- I'm not on the committee. Martin Minow decvax!minow