www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Question

reply Bine Pucnik <albin.pucnik guest.arnes.si> writes:
What is NoScopeNonEmptyStatement ?
Oct 06 2007
next sibling parent reply 0ffh <spam frankhirsch.net> writes:
Bine Pucnik wrote:
 What is NoScopeNonEmptyStatement ?

Either a NonEmptyStatement or a BlockStatment, it seems. =) What do you mean by your question? Regards, Frank
Oct 06 2007
next sibling parent Bine Pucnik <albin.pucnik guest.arnes.si> writes:
0ffh Wrote:

 Bine Pucnik wrote:
 What is NoScopeNonEmptyStatement ?

Either a NonEmptyStatement or a BlockStatment, it seems. =) What do you mean by your question? Regards, Frank

Well, I was reading D language specifications for statements, and it says that : ForStatement: for (Initialize Test; Increment) ScopeStatement Initialize: ; NoScopeNonEmptyStatement . . . I don't know, what kind which statements are NoScopeNonEmptyStatement. Regards,Bine
Oct 06 2007
prev sibling parent Bine Pucnik <albin.pucnik guest.arnes.si> writes:
0ffh Wrote:

 Bine Pucnik wrote:
 What is NoScopeNonEmptyStatement ?

Either a NonEmptyStatement or a BlockStatment, it seems. =) What do you mean by your question? Regards, Frank

Well, I was reading D language specifications for statements, and it says that : ForStatement: for (Initialize Test; Increment) ScopeStatement Initialize: ; NoScopeNonEmptyStatement . . . I don't know, what kind which statements are NoScopeNonEmptyStatement. Regards,Bine
Oct 06 2007
prev sibling next sibling parent Frank Benoit <keinfarbton googlemail.com> writes:
Bine Pucnik schrieb:
 What is NoScopeNonEmptyStatement ?

They are defined in the top of the page. http://www.digitalmars.com/d/statement.html
Oct 06 2007
prev sibling parent reply "Stewart Gordon" <smjg_1998 yahoo.com> writes:
"Bine Pucnik" <albin.pucnik guest.arnes.si> wrote in message 
news:fe83oj$i1v$1 digitalmars.com...
 What is NoScopeNonEmptyStatement ?

Basically, a non-empty statement that doesn't introduce a new scope even if { ... } is used. They are used mainly in conditional compilation statements (debug, version and static if). The point is to enable conditional compilation to work on declarations. Stewart. -- My e-mail address is valid but not my primary mailbox. Please keep replies on the 'group where everybody may benefit.
Oct 13 2007
parent Bine Pucnik <albin.pucnik guest.arnes.si> writes:
Stewart Gordon Wrote:

 "Bine Pucnik" <albin.pucnik guest.arnes.si> wrote in message 
 news:fe83oj$i1v$1 digitalmars.com...
 What is NoScopeNonEmptyStatement ?

Basically, a non-empty statement that doesn't introduce a new scope even if { ... } is used. They are used mainly in conditional compilation statements (debug, version and static if). The point is to enable conditional compilation to work on declarations. Stewart. -- My e-mail address is valid but not my primary mailbox. Please keep replies on the 'group where everybody may benefit.

Bine
Oct 14 2007