You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
I want to make a library for BigInts/BigRationals/BigDecimals, and I need to perform certain mathematical operations with them. I was thinking that a way to implement "subroutines" would be to allow programs themselves to accept arguments and then be able to call those programs from ICE, for example: SNBICMP:
[i]INBICMP(BIGINTA,BIGINTB)
[i] some code hereSOMEMATH+SOMEOTHERMATH->RESULT
[i] some code hereRESULT
SNBIADD:
[i]INBIADD(BIGINTA,BIGINTB)
[i] some code hereprgmSNBICMP(MYBIGINTA,MYBIGINTB)->CMPRESULTIf CMPRESULT=-1SOMEMATH+SOMEOTHERMATH->RESULTElseSOMEFOO+SOMEOTHERFOO->RESULTEnd
[i] some code hereRESULT
I have another idea on how to handle parameters that I'll post in a separate issue.
The text was updated successfully, but these errors were encountered:
I strongly agree with this!! But it needs to be approached in a new way.
Instead of having a separate program that allows you to run new command. it should be in source code of the program like in C.
This makes it much more easier and less space consuming. not only will this help, this will put an end to people asking for new commands in ICE. 😄 "Just A step closer to ICE 3.0!"
I agree that that's also a good idea, but (with my very limited knowledge of how ICE works) it seems like it would be harder to implement.
I think if it does end up being handled that way, having imports would be a great idea. I'd be able to fit a math library into a single program that others can just import.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I want to make a library for BigInts/BigRationals/BigDecimals, and I need to perform certain mathematical operations with them. I was thinking that a way to implement "subroutines" would be to allow programs themselves to accept arguments and then be able to call those programs from ICE, for example:
SNBICMP
:SNBIADD
:I have another idea on how to handle parameters that I'll post in a separate issue.
The text was updated successfully, but these errors were encountered: