-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: spark
Message 3 in Discussion
gauarav, i have reasons for thinking that that is bad: i want to create a jagged
array at coompile time reather than at runtime cause i know what values i want to put
into it. if teh compiler would just let me, then this is what i want : int *
arr[2] = { {1,2}, {1,2,3} }; similar to char * str[] = { "abc", "xy"}; when you
do the dynamic thing, though i will get an array: it iwasteful beacuse the data i want
to have in teh array is anyway there in myprogram -> if intitialised memeber by
memeber it will be sprinlked through my .text, else it will lie in my .bss. now it
doesnt make much sense to copy the same thing out to the heap for purely read only
purposes right. secondly gaurav, i neednt actaully waste the runtime processor cycles
for the process also. actually a third reason is that i need to practically use this
and writting 42 member arrays with ~5 members each isnt going to be easy. see my
problem ? while this will work (i think) int * arr[2]; int * arr1 = {1,2}; arr[0] =
arr1; int * arr2 = {1,2,3}; arr[1] = arr2; (with the data lying in my bss), i am
looking for a slightly better method of expression. thanks for the reply, i was,
sort of, counting on you. rosh
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]