Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Languages Misc > Re: RFC: C and ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 20 Topic 1080 of 1193
Post > Topic >>

Re: RFC: C and concurrency (as CC extensions)

by "cr88192" <cr88192@[EMAIL PROTECTED] > Dec 15, 2007 at 07:48 AM

"Douglas A. Gwyn" <DAGwyn@[EMAIL PROTECTED]
> wrote in message 
news:47602631.DC2BEDE@[EMAIL PROTECTED]
> cr88192 wrote:
>> 'Alef' was also mentioned, and is interesting.
>> the 'tupple' type is interesting, ...
>
> I think Alef has pretty much vanished, but Limbo (the main
> language for Inferno) has nice sup****t for tuples.

yes, ok.

actually, I had thought some about tupples.

they could be implemented in a C compiler, and could have a few uses
(though 
mostly as syntactic sugarring).
likely, in the implementation, such a tupple would be regarded as 
essentially the same as a struct (though, given the different usage 
patterns, may have different treatment of member size/alignment,
resembling 
an args list rather than a memory object, or, potentially, they could have

the same memory layout as structs).

alternatively, they need not be real types, but merely a syntactic
shorthand 
(for example, for struct construction/destructuring). however, absent 
adornment, they would cost in terms of parsing (with adornment, absent 
destructuring syntax, they would not really offer anything over structs).


as such, about the only really compelling feature would be destructuring 
syntax, for example:
struct { float x, y; }v;
float f, g;

(f, g)=v;


however, at this point, for other reasons, I am not likely to implement
any 
of this (during the process of rewriting the upper compiler, the syntax is

essentially locked down in both the old and new upper compilers).
 




 20 Posts in Topic:
RFC: C and concurrency (as CC extensions)
"cr88192" <c  2007-12-09 16:46:12 
Re: RFC: C and concurrency (as CC extensions)
Robbert Haarman <comp.  2007-12-09 09:18:45 
Re: RFC: C and concurrency (as CC extensions)
"cr88192" <c  2007-12-09 20:29:19 
Re: RFC: C and concurrency (as CC extensions)
George Peter Staplin <  2007-12-09 10:09:33 
Re: RFC: C and concurrency (as CC extensions)
"cr88192" <c  2007-12-09 21:05:07 
Re: RFC: C and concurrency (as CC extensions)
"Douglas A. Gwyn&quo  2007-12-10 16:34:37 
Re: RFC: C and concurrency (as CC extensions)
"cr88192" <c  2007-12-11 18:32:08 
Re: RFC: C and concurrency (as CC extensions)
"cr88192" <c  2007-12-12 10:37:02 
Re: RFC: C and concurrency (as CC extensions)
"Douglas A. Gwyn&quo  2007-12-12 18:19:29 
Re: RFC: C and concurrency (as CC extensions)
"cr88192" <c  2007-12-15 07:48:35 
Re: RFC: C and concurrency (as CC extensions)
Roberto Waltman <usene  2007-12-12 15:00:49 
Re: RFC: C and concurrency (as CC extensions)
"cr88192" <c  2007-12-13 06:34:23 
Re: RFC: C and concurrency (as CC extensions)
Roberto Waltman <usene  2007-12-12 15:56:02 
Re: RFC: C and concurrency (as CC extensions)
"cr88192" <c  2007-12-13 17:09:04 
Re: RFC: C and concurrency (as CC extensions)
John Whorfin <_@[EMAIL  2007-12-13 22:47:44 
Re: RFC: C and concurrency (as CC extensions)
"cr88192" <c  2007-12-13 22:25:19 
Re: RFC: C and concurrency (as CC extensions)
ram@[EMAIL PROTECTED] (S  2007-12-18 18:59:03 
Re: RFC: C and concurrency (as CC extensions)
"cr88192" <c  2007-12-19 07:54:44 
Re: RFC: C and concurrency (as CC extensions)
Robbert Haarman <comp.  2007-12-19 06:04:59 
Re: RFC: C and concurrency (as CC extensions)
"cr88192" <c  2007-12-20 06:02:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 22:47:43 CDT 2008.