Dynamic Arrays in Pascal - Old School Cool or ...?
HTML-код
- Опубликовано: 8 сен 2024
- Think dynamic arrays are a thing of the past? Think again! Let's take a nostalgic trip back to Marco Cantu's "Essential Pascal" and dive into dynamic arrays and strings specifically. We'll cover everything from setting up your array to adding and working with elements.
Links:
Marco Cantù's Essential Pascal - www.marcocantu...
Memory and Dynamic Arrays - www.marcocantu...
Code - github.com/sil... (example4.dpr)
#dynamicarrays #programming #coding #pascal #retrocoding #codingtutorial #softwaredevelopment #generics #oldschoolcoding
I've always loved Pascal, and it's the second language I learned, but I've always felt that it was lacking when it came to arrays as compared to C. A lot of people complain about VLA's, which they added with C99, but they're actually a great feature and really replaced alloca() in my toolkit. If you don't know already, alloca() was a function to allocate space on the stack which was present in a few compilers but definitely wasn't standard.
@@anon_y_mousse I've been a c programmer in different forms and know what you mean. Also thanks:)