Board index » cppbuilder » #region in C++

#region in C++


2007-08-20 04:21:00 AM
cppbuilder85
Why would you think there is no #region #endregion in C++?
Is that a good thing to add in the next release?
 
 

Re:#region in C++

Valence wrote:
Quote
Why would you think there is no #region #endregion in C++?

Is that a good thing to add in the next release?
They are not part of the C++ language. I don't think Borland should add
more proprietary features to the language than absolutely necessary.
--
Rudy Velthuis [TeamB]
"Mit der Dummheit kämpfen Götter selbst vergebens"
"Against stupidity the (very) gods themselves contend in vain"
-- Friedrich von Schiller
 

Re:#region in C++

You're right.
I know I'm being hard headed, but would
#pragma region xxx
#pragma endregion
be any better, or just a hack?
"Rudy Velthuis [TeamB]" < XXXX@XXXXX.COM >wrote in message
Quote
Valence wrote:

>Why would you think there is no #region #endregion in C++?
>
>Is that a good thing to add in the next release?

They are not part of the C++ language. I don't think Borland should add
more proprietary features to the language than absolutely necessary.

--
Rudy Velthuis [TeamB]

"Mit der Dummheit kämpfen Götter selbst vergebens"
"Against stupidity the (very) gods themselves contend in vain"
-- Friedrich von Schiller
 

{smallsort}

Re:#region in C++

"Valence" < XXXX@XXXXX.COM >skrev
Quote

You're right.

I know I'm being hard headed, but would

#pragma region xxx
#pragma endregion

be any better, or just a hack?
#pragma region "hide_this_code"
// code to hide
....
#pragma end_region
does work in Builder 2006
/ia
 

Re:#region in C++

Wow... Nice... :o). Seems so natural ;o).
I just wish I had found it in the help. I do think the help will get better,
but at present, I did not find it using search.
It doesn't seem obvious in the index either.
But it works... Thanks much.
"Ingvar Anderberg" < XXXX@XXXXX.COM >wrote in message
Quote
"Valence" < XXXX@XXXXX.COM >skrev
>
>You're right.
>
>I know I'm being hard headed, but would
>
>#pragma region xxx
>#pragma endregion
>
>be any better, or just a hack?


#pragma region "hide_this_code"
// code to hide
....
#pragma end_region

does work in Builder 2006

/ia

 

Re:#region in C++

Valence wrote:
Quote

You're right.

I know I'm being hard headed, but would

#pragma region xxx
#pragma endregion

be any better, or just a hack?
That would be a lot better, IMO.
--
Rudy Velthuis [TeamB]
"A people that values its privileges above its principles soon
loses both."
-- Dwight D. Eisenhower (1890-1969), Inaugural Address,
January 20, 1953
 

Re:#region in C++

Rudy Velthuis [TeamB] wrote:
Quote

That would be a lot better, IMO.
You meant to say 'is', didn't you :)
 

Re:#region in C++

Alex Bakaev [TeamB] wrote:
Quote
Rudy Velthuis [TeamB] wrote:

>
>That would be a lot better, IMO.

You meant to say 'is', didn't you :)
Yeah, I guess I did. <sheepish grin>
--
Rudy Velthuis [TeamB]
"Computers are useless; they can only give you answers."
-- Pablo Picasso