Lartu / ldpl

COBOL-like programming language that compiles to C++. With serious dinosaurs with neckties and briefcases 🦕💼
https://www.ldpl-lang.org/
Apache License 2.0
160 stars 24 forks source link

LIST access error #132

Closed Lartu closed 5 years ago

Lartu commented 5 years ago

When trying to access a non-existent position of a LIST, LDPL should throw a runtime error (by checking the size of the LIST and the position you are trying to access). At the moment it throws a C++ std::bad_alloc and that is something super not very nice for the user.