Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comal: Support non-constant string lengths in DIM...OF #10

Open
stevewpalmer opened this issue Nov 28, 2024 · 0 comments
Open

Comal: Support non-constant string lengths in DIM...OF #10

stevewpalmer opened this issue Nov 28, 2024 · 0 comments

Comments

@stevewpalmer
Copy link
Owner

The current syntax for DIM with strings is:

DIM string$ OF <constant>

However the Comal specification allows the use of a computed expression in place of <constant>. At present we handle allocation of strings in a static manner due to the constant size so this would require the implementation of dynamic length strings which is not supported in JComLib at present.

See the slp.lst sample and this line:

1080   DIM alloc$ OF blksize#

for an example.

@stevewpalmer stevewpalmer changed the title Support Comal non-constant string lengths in DIM...OF Comal: Support non-constant string lengths in DIM...OF Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant