Re: Computer programmers' habits in electronics
- From: Rich Grise <richgrise@xxxxxxxxxxx>
- Date: Wed, 21 Dec 2005 19:16:30 GMT
On Wed, 21 Dec 2005 01:08:41 +0000, Geoff Joy wrote:
> On 20 Dec 2005 15:00:45 -0800, "PeteS" <ps@xxxxxxxxxxxxxxxxxxx> wrote:
>
>>Geoff wrote:
>>> On 20 Dec 2005 11:24:45 -0800, "PeteS" <ps@xxxxxxxxxxxxxxxxxxx> wrote:
>>>
>>> >I love the C construct 'where(x)' :)
>>>
>>> There's a 'where(x)' construct in C? How is it implemented?
>>> Where is this documented?
>>>
>>> Surely you mean "while(x)", yes?
>>>
>>
>>
>>> Methinks you have been programming Fortran or LISP too much.
>>
>>Done both, enjoyed them.
>>
>>Although I answered, perhaps you should consider carefully reading
>>everything I wrote. I mentioned it was a massively parallel system
>>(well, 320 parallel, anyway) and a construct such as 'where(something)
>>is perfect in a parallel SIMD world.
>>
>>I actually wrote that I loved the C 'where(x) construct'. There was no
>>mention of it being ANSI C ;)
>>
>>Cheers
>>
>>PeteS
>
> And I did consider everything you wrote. Which is why I asked how it
> was implemented since as a function, where() would have had to have
> been exactly that, a function. Your choice of the word "construct"
> keyed me into that. Strictly speaking, "while" is a keyword, not a
> construct or a function call.
>
> Now, what's the difference between
>
> where(x == active)
> {
> do_something;
> }
>
> and
>
> while(x == active)
> {
> do_something;
> }
>
> and why did it require creating a new keyword?
Because it's not C, it's VHDL or Verilog.
Cheers!
Rich
.
- References:
- Re: Computer programmers' habits in electronics
- From: Jim Thompson
- Re: Computer programmers' habits in electronics
- From: Dirk Bruere at Neopax
- Re: Computer programmers' habits in electronics
- From: PeteS
- Re: Computer programmers' habits in electronics
- From: PeteS
- Re: Computer programmers' habits in electronics
- Prev by Date: Re: Digital Current Control for LED array
- Next by Date: Re: Computer programmers' habits in electronics
- Previous by thread: Re: Computer programmers' habits in electronics
- Next by thread: Re: Computer programmers' habits in electronics
- Index(es):