Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How would you design C's replacement?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
BGB  
View profile  
 More options May 3 2012, 7:08 pm
Newsgroups: comp.lang.c
From: BGB <cr88...@hotmail.com>
Date: Thu, 03 May 2012 16:08:16 -0700
Local: Thurs, May 3 2012 7:08 pm
Subject: Re: How would you design C's replacement?
On 5/3/2012 9:26 AM, Kenneth Brody wrote:

> On 5/2/2012 11:21 AM, Rui Maciel wrote:
> [...]
>> If someone really needs some hand-holding with the assignment operator, a
>> macro could help. The following macro might do the trick:

>> #define SET(A,B) { A = B; }

>> I don't believe this sort of solution will ever be popular.

> You forgot:

> #define BEGIN {
> #define END ;}
> #define GETS_ASSIGNED_FROM =
> #define IS_EQUAL_TO ==

> #define SET(A,B) BEGIN A GETS_ASSIGNED_FROM B END

and thus begins "C: The Quest for COBOL"...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.