struct Location size

Walter Bright newshound2 at digitalmars.com
Tue May 9 03:38:29 UTC 2023


On 5/8/2023 6:41 PM, zjh wrote:
> 8 bits for columns - 1..256
> 15 bits for lines - 1..32768
> 9 bits for files - 512
> 
> 64 for column are generally not enough. After the above changes, the general 
> projects are sufficient.
> But for large projects, there should be a switch, which needs to be expanded to 
> '8' bytes.


I don't think 512 files is enough. As for columns, those aren't very important, 
and it can just "top out" at 64. Not perfect.


More information about the Digitalmars-d mailing list