Some of these arguments one comes across about not including C style
keywords in RB seem awfully "purist" to me at times.  Surely the key point
is 

1) does it make us more productive
2) is it readable  - one of the great things about the RB/VB syntax is just
how readable and maintainable the code is.

I defintely agree that "*" is out of place,  but see no harm in adding ++,
-- or even += . If people don't like those operators they can simply


VB, net does this already, as do other perfectly readable languages such as
PowerBuilder.

As far as the "NextValue" thing, apart from its ugliness. Some more terse
and elegant syntax would be nice.

What I object to about the *p++  syntax is that I feel its more readable to
split this into 2 lines.
*p 
p++

Otherwise one is doing two sequential acts on the same line, very common in
C of course - but hard to get ones head around - particularly after a few
pints of "Tim Taylor"..

On 26/9/06 21:53, "Frank Condello" <[EMAIL PROTECTED]> wrote:

> On 26-Sep-06, at 3:59 PM, Charles Yeomans wrote:
>> 
>> On Sep 26, 2006, at 3:41 PM, Theodore H. Smith wrote:
>>> ...
>>> 
>>> .NextValue, would get a value, and increment it. Basically doing *p++
>>> 
>>> Also looks nicer, really. "*" is a C thing, kind of ugly compared
>>> really when used in an RB context.
>> 
>> "NextValue" is equally so; indeed, C style looks a little out of
>> place in REALbasic code.
> 
> The Ptr syntax always seemed a little odd to me, I'd really like to
> see strongly typed pointers like in C - e.g.:
> 
>     Pointer p As UInt32
> 
> So instead of p.UInt32(4) you'd just write p(1). There's already
> syntax precedent for replacing Dim (Static, Const) but I haven't got
> a clue how reasonable a feature request this would make.
> 
> Frank.
> <http://developer.chaoticbox.com/>
> 
> 
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> 
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
> 


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to