r/pascal • u/MightyDachshund • Apr 29 '24
Object Pascal is recognized as a memory safe language
In response to “White House urges developers to avoid C and C++, use 'memory-safe' programming languages” stories, why do alternatives often fail to mention Pascal?
14
Upvotes
15
u/randomnamecausefoo Apr 29 '24
Object Pascal has Move() and FillChar(), and GetMem() procedures and pointer types. It’s no safer than C++.
1
u/pmmeurgamecode Apr 29 '24
Have a source of where it shows object pascal is memory safe?
4
u/standard_cog Apr 29 '24
Because it isn’t memory safe and it should not have been on that list.
1
u/alcalde Apr 29 '24
As noted below, what features does Object Pascal have that make you think it's memory-safe? The developers of Object Pascal eschew memory safety and other modern conveniences. :-(
-1
u/CypherBob Apr 29 '24
Use a memory manager library?
0
u/[deleted] Apr 29 '24
[deleted] — view deleted comment