Click here to Skip to main content
15,916,188 members
Home / Discussions / C#
   

C#

 
AnswerRe: For Loop Pattern to use in Parsing - C# code Pin
musefan28-Jul-09 4:33
musefan28-Jul-09 4:33 
GeneralRe: For Loop Pattern to use in Parsing - C# code Pin
Chris Trelawny-Ross28-Jul-09 4:58
Chris Trelawny-Ross28-Jul-09 4:58 
GeneralRe: For Loop Pattern to use in Parsing - C# code Pin
PIEBALDconsult28-Jul-09 5:41
mvePIEBALDconsult28-Jul-09 5:41 
GeneralRe: For Loop Pattern to use in Parsing - C# code Pin
Vikram A Punathambekar28-Jul-09 6:35
Vikram A Punathambekar28-Jul-09 6:35 
GeneralRe: For Loop Pattern to use in Parsing - C# code Pin
PIEBALDconsult28-Jul-09 7:04
mvePIEBALDconsult28-Jul-09 7:04 
GeneralRe: For Loop Pattern to use in Parsing - C# code Pin
Vikram A Punathambekar28-Jul-09 7:19
Vikram A Punathambekar28-Jul-09 7:19 
GeneralRe: For Loop Pattern to use in Parsing - C# code Pin
PIEBALDconsult28-Jul-09 7:31
mvePIEBALDconsult28-Jul-09 7:31 
GeneralRe: For Loop Pattern to use in Parsing - C# code Pin
PIEBALDconsult29-Jul-09 6:22
mvePIEBALDconsult29-Jul-09 6:22 
Maybe you're right. I see no mention of the comma operator in either C# spec.

C-74 (Dennis Ritchey)
"
7.15 expression , expression
A pair of expressions separated by a comma is evaluated lefttoright
and the value of the left expression is discarded.
The type and value of the result are the type and value of the right operand. This operator groups lefttoright.
It should be avoided in situations where comma is given a special meaning, for example in actual arguments
to function calls (§7.1.6) and lists of initializers (§10.2).
"

C-99 (ANSI)
"
The left operand of a comma operator is evaluated as a void expression; there is a
sequence point after its evaluation. Then the right operand is evaluated; the result has its
type and value.95) If an attempt is made to modify the result of a comma operator or to
access it after the next sequence point, the behavior is undefined.
"


But C# has no comma operator, the effect is provided by:

C# (ECMA)
"
statement-expression:
invocation-expression
object-creation-expression
assignment
post-increment-expression
post-decrement-expression
pre-increment-expression
pre-decrement-expression

statement-expression-list:
statement-expression
statement-expression-list , statement-expression
"

And that's not allowed in the for-condition. Sigh | :sigh:
AnswerRe: For Loop Pattern to use in Parsing - C# code Pin
gamer112728-Jul-09 4:43
gamer112728-Jul-09 4:43 
AnswerRe: For Loop Pattern to use in Parsing - C# code Pin
OriginalGriff28-Jul-09 4:49
mveOriginalGriff28-Jul-09 4:49 
AnswerRe: For Loop Pattern to use in Parsing - C# code Pin
Pete O'Hanlon28-Jul-09 4:51
mvePete O'Hanlon28-Jul-09 4:51 
AnswerRe: For Loop Pattern to use in Parsing - C# code Pin
gamer112728-Jul-09 5:15
gamer112728-Jul-09 5:15 
AnswerRe: For Loop Pattern to use in Parsing - C# code Pin
harold aptroot28-Jul-09 6:05
harold aptroot28-Jul-09 6:05 
AnswerRe: For Loop Pattern to use in Parsing - C# code Pin
PIEBALDconsult28-Jul-09 6:11
mvePIEBALDconsult28-Jul-09 6:11 
QuestionFiring up the event when string text is changed Pin
Blubbo28-Jul-09 4:15
Blubbo28-Jul-09 4:15 
AnswerRe: Firing up the event when string text is changed Pin
Vimalsoft(Pty) Ltd28-Jul-09 4:19
professionalVimalsoft(Pty) Ltd28-Jul-09 4:19 
GeneralRe: Firing up the event when string text is changed Pin
Blubbo28-Jul-09 4:22
Blubbo28-Jul-09 4:22 
GeneralRe: Firing up the event when string text is changed Pin
Vimalsoft(Pty) Ltd28-Jul-09 4:30
professionalVimalsoft(Pty) Ltd28-Jul-09 4:30 
GeneralRe: Firing up the event when string text is changed Pin
Ian Shlasko28-Jul-09 4:30
Ian Shlasko28-Jul-09 4:30 
GeneralRe: Firing up the event when string text is changed Pin
Blubbo28-Jul-09 4:34
Blubbo28-Jul-09 4:34 
GeneralRe: Firing up the event when string text is changed Pin
Ian Shlasko28-Jul-09 4:38
Ian Shlasko28-Jul-09 4:38 
GeneralRe: Firing up the event when string text is changed [modified] Pin
Blubbo28-Jul-09 4:46
Blubbo28-Jul-09 4:46 
GeneralRe: Firing up the event when string text is changed Pin
Ian Shlasko28-Jul-09 6:04
Ian Shlasko28-Jul-09 6:04 
Question[Message Deleted] Pin
Vivek Vijayan28-Jul-09 4:09
Vivek Vijayan28-Jul-09 4:09 
AnswerRe: insert code not working Pin
moon_stick28-Jul-09 4:15
moon_stick28-Jul-09 4:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.