Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String size limit

Status
Not open for further replies.

mjg01

Programmer
Nov 22, 2002
7
US
Aspect is a powerful language and very unique, but the string size limit of 255 or 256 characters is a frustrating limitation. I'm curious how other people get around this limitation. I dump data to a file when a string size reaches the limit, and so far the limitation hasn't been a problem. I wonder though when it might.

Thanks,

mjg
 
One thing I've done a little work with (and need to get back to and finish properly) is creating data structures in ASPECT. This would let you create a data structure that is composed of, say multiple strings (four string member variables would get you 1024 characters). You can see some of the work I've done thus far here:


aspect@aspectscripting.com
 
Very interesting data structure concept. I haven't really looked at Aspect’s memory commands. I'm currently investigating creating an Aspect dll that would mimic the string functions of Aspect, except a string's size would only be limited to available memory. The string functions wouldn't be as flexible as a built in string data type, but... However, there is very little documentation and very few examples available relating to Aspect dlls. I wonder how robust Aspect's dll framework is.

I also wonder if something similar can be accomplished with your data structure concept, but based only on integers, or by using an integer array. Using an integer array would take up far more memory than a typical string implementation based on a char array, but it might be worth the cost. Basically, each element in the integer array would be a character in the string. Thoughts, anybody?

mjg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top