What is a type error?

Joachim Durchholz jo at durchholz.org
Mon Jul 17 06:23:01 EDT 2006


Rob Warnock schrieb:
> Joachim Durchholz  <jo at durchholz.org> wrote:
> +---------------
> | INSERT cannot be expressed in terms of assignment. INSERT creates a new 
> | record; there's no way that assignment in a language like C can create a 
> | new data structure!  The same goes for DELETE.
> +---------------
> 
> Well, what about "malloc()" & "free()"?

These do exactly what assignment cannot do.

The correspondence between SQL and C would be:
   INSERT - malloc() (create a new data structure)
   DELETE - free() (destroy a data structure)
   UPDATE - assignment (change data within a data structure)

Regards,
Jo



More information about the Python-list mailing list