Comments (4)
But in general I find recursion useless on 8-bit systems ;)
from mad-pascal.
Don't take away the ability to create recursion. Allow it, however, let it be known that it has its limitations.
Finally, MAD Pascal, allows you to call other procedures/functions from procedures/functions, repeatedly going deep into the "call tree".
After all, this is the same as recursion, except that different procedures/functions are called.
The call stack is small (I don't know what kind - maybe you can write about it?), but it allows to do that in the simplest form (without optimization).
In general, if recursion is used, it's mostly with a small number of parameters - which is also important for the number of iterations.
I think that recursion is one of the most important features of a language - if you deprive Pascal's MAD of it, it can lose its usefulness.
Translated with www.DeepL.com/Translator (free version)
from mad-pascal.
Most important for me is more space on ZP than ability to use recursion on relatively big (on 8-bit) stack on ZP.
I proposed tail recursion witch is fine on small systems.
from mad-pascal.
doesn't matter anymore
from mad-pascal.
Related Issues (20)
- Arithmetic on pointer passed by variable should not affect data HOT 2
- using the `fdiv` variable name when dividing with floating point `float` / `single` causes a hangup HOT 2
- The `inline` modifier in a nested function throws a compilation error in MADS HOT 1
- Unit compilation error HOT 4
- Unable to reuse the MPT player with another music file. HOT 1
- Feature: Direct parameter reference of functions and procedures.
- [feature request] Default parameter
- MP incorrectly generates a reference to a variable placed in the library, which causes a MADS compilation error. HOT 3
- [BUG] Access violation HOT 2
- Path normalization is an issue under linux when capital letters are used in path. HOT 1
- Compiler directives $info $warning $error not working as expected
- Determining the location (in memory) for STATICDATA
- The compiller requires write access to library files for compilation (?) HOT 2
- Incorrect algorithm in the prime numbers calculation benchmarks HOT 2
- [Feature] ORGIN directive HOT 1
- [Optimizing] Extra jump to the correct part of the procedure when there are sub-functions in the function/procedure. HOT 3
- Unable to pass fields of record as variable for record given by pointer HOT 2
- BUG: benchmark suite is broken now HOT 1
- Unable to copy nested record of record passed as pointer HOT 2
- Unable to cast pointer on the left side of assignment HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mad-pascal.