[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iptables -A or iptables -I?

also sprach Juan Carlos Inostroza <jci@tux.cl> [2004.10.19.1940 +0200]:
> Knowing that to insert an element at the end of a list, in pseudocode:
> - create_new_element(n)
> - link_element(list, n)
> And inserting an element at the beggining of a list:
> - create_new_element(n)
> - newlist = create_new_list(number_of_elements(list+1))
> - link_element(newlist,n)
> - copy_elements(newlist,list,1,number_of_elements(n))

Uh, you should really read up on list/API design. This looks too
much like Java or VB to me.

Appending to a n-linked list requires modification of n pointers.
Inserting to a n-linked list requires modification of 2n pointers.

Please do not CC me when replying to lists; I read them!
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, and user
`. `'`
  `-  Debian - when you have better things to do than fixing a system
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

Attachment: signature.asc
Description: Digital signature

Reply to: