On Fri, 22 Dec 2017 10:33:05 +0100
Peter He <linh...@gmail.com> wrote:

> Hi!
> 
> Sorry, I'm a student, and I don't quite get it.
> 
> Why not put generics like dynamic array and linked list into a
> separate/reusable/orthogonal library or just use the standard
> (std::list,std::vector), rather than having custom ones in the Wayland
> Server API?

Hi,

libwayland is written in C, so std::list etc. being C++ features are
not available.

The implementations are so tiny that it does not benefit much to put
them into a separate library, nor pull in an additional dependency for
them either. The implementations are also of a particular flavour -
there are many ways to implement a linked list, with different
characteristics.


Thanks,
pq

Attachment: pgpgfnd4WZak6.pgp
Description: OpenPGP digital signature

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to