> On Apr 12, 2017, at 9:25 PM, Michael Van Canneyt <mich...@freepascal.org> 
> wrote:
> 
> Adding a pop/push requires compiler magic, and could be implemented; but the 
> question is whether it is worth it, given the plethora of other
> options at your disposal.

Why magic? It seems silly the operator += doesn’t exist or even a basic 
operation set like “add”, “remove”, “insert” that every array implementation in 
every language has. Aren’t those just function around the existing dynamic 
array implementation in the compiler?

I have no idea if it’s worth it though. I personally don’t use dynamic arrays 
directly because they’re too bare bones so adding them at all wasn’t worth it 
for me. However, if the API was more robust I would start using them instead of 
my own class/record wrappers.

Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to