Thread overview
Question
Oct 06, 2007
Bine Pucnik
Oct 06, 2007
0ffh
Oct 06, 2007
Bine Pucnik
Oct 06, 2007
Bine Pucnik
Re: Answer
Oct 06, 2007
Frank Benoit
Oct 13, 2007
Stewart Gordon
Oct 14, 2007
Bine Pucnik
October 06, 2007
What is NoScopeNonEmptyStatement ?
October 06, 2007
Bine Pucnik wrote:
> What is NoScopeNonEmptyStatement ?

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

Regards, Frank
October 06, 2007
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

October 06, 2007
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

October 06, 2007
Bine Pucnik schrieb:
> What is NoScopeNonEmptyStatement ?

They are defined in the top of the page. http://www.digitalmars.com/d/statement.html
October 13, 2007
"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. 

October 14, 2007
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.
> 
I see ! Thanks for the answer !

Bine