BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

'initialized set > 4 bytes in size'

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
Boba
Guest





PostPosted: Wed Dec 20, 2006 9:22 pm    Post subject: 'initialized set > 4 bytes in size' Reply with quote



a very simple pascal line
const HexNumChars=['0'..'9','A'..'F','a'..'f','h','H','x','X'];
makes my BCB very unhappy with the following outcome:
[PascalError] test.pas(1): Unsupported language feature: 'initialized set >
4 bytes in size'.
Where in this f[rozen] universe it could possibly find over 4Gbytes of my
initialized set? or
is it just my f[rozen] brain thinking of the Holidays? Dear Santa, please
help. Boba.
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Dec 21, 2006 2:18 am    Post subject: Re: 'initialized set > 4 bytes in size' Reply with quote



"Boba" <Boba (AT) somewhere (DOT) world> wrote in message
news:45895517 (AT) newsgroups (DOT) borland.com...

Quote:
a very simple pascal line
const HexNumChars=['0'..'9','A'..'F','a'..'f','h','H','x','X'];
makes my BCB very unhappy

Which version of BCB are you using?

Quote:
[PascalError] test.pas(1): Unsupported language feature:
'initialized set > 4 bytes in size'.

Try declaring the variable type to be a TSysCharSet, ie:

const HexNumChars: TSysCharSet =
['0'..'9','A'..'F','a'..'f','h','H','x','X'];


Gambit
Back to top
Boba
Guest





PostPosted: Thu Dec 21, 2006 9:11 am    Post subject: Re: 'initialized set > 4 bytes in size' Reply with quote



const HexNumChars:set of char=['0'..'9','A'..'F','a'..'f','h','H','x','X'];
Back to top
Boba
Guest





PostPosted: Thu Dec 21, 2006 9:11 am    Post subject: Re: 'initialized set > 4 bytes in size' Reply with quote

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:45899a72 (AT) newsgroups (DOT) borland.com...
Quote:
...
Which version of BCB are you using?

[PascalError] test.pas(1): Unsupported language feature:
'initialized set > 4 bytes in size'.

Try declaring the variable type to be a TSysCharSet, ie:

const HexNumChars: TSysCharSet =
['0'..'9','A'..'F','a'..'f','h','H','x','X'];


Gambit

Thanks. It is BCB3. I'm still confused... originaly i had:


const
HexNumCharsLC=['0'..'9','a'..'f','h','x'];
HexNumChars =['0'..'9','A'..'F','H','X']+HexNumCharsLC;

and the dcc was as happy as it could be. (does bcc use the same
dcc from the $(bcb)\bin dir?) now 'constant expression expected'?
i must have screwed up some settings again... was it dcc v.11
that shipped w/bcb3?
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Dec 21, 2006 9:11 am    Post subject: Re: 'initialized set > 4 bytes in size' Reply with quote

"Boba" <Boba (AT) somewhere (DOT) world> wrote in message
news:458a0396 (AT) newsgroups (DOT) borland.com...

Quote:
Thanks. It is BCB3. I'm still confused... originaly i had:

const
HexNumCharsLC=['0'..'9','a'..'f','h','x'];
HexNumChars =['0'..'9','A'..'F','H','X']+HexNumCharsLC;

and the dcc was as happy as it could be.

I can compile that same code in both BCB 3 and 6. What version are you
having a problem with?

Quote:
was it dcc v.11 that shipped w/bcb3?

Yes.


Gambit
Back to top
Boba
Guest





PostPosted: Fri Dec 22, 2006 3:18 pm    Post subject: Re: 'initialized set > 4 bytes in size' Reply with quote

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:458a1ec5$1 (AT) newsgroups (DOT) borland.com...
Quote:
...
I can compile that same code in both BCB 3 and 6. What version are you
having a problem with?


It is bcc32 v5.3 + dcc32 v11.0 shipped w/BCB3 (bcb v3.0.3.70)
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sat Dec 23, 2006 2:51 am    Post subject: Re: 'initialized set > 4 bytes in size' Reply with quote

"Boba" <Boba (AT) somewhere (DOT) world> wrote in message
news:458ba2d1 (AT) newsgroups (DOT) borland.com...

Quote:
It is bcc32 v5.3 + dcc32 v11.0 shipped w/BCB3 (bcb v3.0.3.70)

Like I said, I can compile it in BCB 3. Are you trying to compile the code
from the command-line or from within the IDE?


Gambit
Back to top
Boba
Guest





PostPosted: Sat Dec 23, 2006 9:11 am    Post subject: Re: 'initialized set > 4 bytes in size' Reply with quote

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:458c4576$3 (AT) newsgroups (DOT) borland.com...
Quote:
...
Like I said, I can compile it in BCB 3. Are you trying to compile the
code
from the command-line or from within the IDE?

compiling it separately gives me no trouble at all. it's when i run bcb ide
and
create a project with a mixture of pas and cpp files - this is why in my op
i
say BCB. fortunately, that was the only pascal line (out of >800kb total) in
that old (>~8 years) project; and i'm sure it was one of borland's compilers
used back then. last night i was looking for any patches in borland.com area
but all support is now for registered users only. i don't think it is a good
idea
to first pay for a bad product and later pay more for the tech.support of
that tool.
The days when there were things to get done easier with borland than ms are
gone.
Are they?
Boba
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.