|
Re: More than 256 literals referenced.: msg#00136lang.smalltalk.squeak.beginners
The limit is 256 literals per method. However, a literal array is 256 literals per method seems find to me, initializing such a large dictionary was unusual for me and something of an experiment (mainly to avoid reading from a file at all). I had the data in YAML that I just wrote a small script to generate smalltalk code from. I didn't make a class mainly because I don't need the data for anything more than lookups dictionaries give me. I'll give your suggestion above a try but might just convert the YAML to XML or CSV and read the table in from the file. Maybe as an array of RecordEntry instead of using a dictionary. I will have a need for a database (or some persistence layer) later in the project, so might just bite the bullet now. Thanks, Robert
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: More than 256 literals referenced., Bert Freudenberg |
|---|---|
| Next by Date: | Proper fractions?, Blake |
| Previous by Thread: | Re: Re: More than 256 literals referenced., Bert Freudenberg |
| Next by Thread: | Re: More than 256 literals referenced., nicolas cellier |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |