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

Delete and Insert for Arrays #41

Closed
JohnPeel opened this issue Jun 8, 2013 · 1 comment
Closed

Delete and Insert for Arrays #41

JohnPeel opened this issue Jun 8, 2013 · 1 comment

Comments

@JohnPeel
Copy link
Contributor

JohnPeel commented Jun 8, 2013

I am a developer on a project that uses PascalScript, we use FreePascal.

I've written these methods for it and would like to share.

Insert (and Append): https://github.com/MerlijnWajer/Simba/blob/master/Units/MMLAddon/mmlpsthread.pas#L1015
Delete: https://github.com/MerlijnWajer/Simba/blob/master/Units/MMLAddon/mmlpsthread.pas#L1096

If anyone would like to modify them to fix my problem and make them cross-compiler, feel free.

My problem is I can't seem to get it to work with static arrays or figure out how to even tell if an array is static.

Currently I'm using a workaround. (Only accept variables as parameters)

@JohnPeel JohnPeel closed this as completed Jun 8, 2013
@JohnPeel JohnPeel reopened this Jun 8, 2013
@JohnPeel
Copy link
Contributor Author

JohnPeel commented Jun 8, 2013

Also, can I create a function that has no type for the return? (Copy for arrays)

These methods work for strings and arrays.

@JohnPeel JohnPeel closed this as not planned Won't fix, can't repro, duplicate, stale Mar 1, 2024
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