Ideas 20 Nov 2006 05:24 pm
Be a pointer, my friend
No he podido evitar publicarlo. Me lo ha mandado Manolo Oterino fundador de Sorase y programador de toda la vida, así que viniendo de un amigo y haciendo referencia a los punteros tan potentes y terribles de C y C++ ahí va:

Empty your memory,
with a free()…
like a pointer!
If you cast a pointer to a integer,
it becomes the integer,
if you cast a pointer to a struct,
it becomes the struct…
The pointer can crash…,
and can Overflow…
Be a pointer my friend…
2 Responses to “Be a pointer, my friend”
on 28 Nov 2006 at 4:43 pm 1.Justo said …
Me han pasado otro, si acaso, más purista que el que apuntas:
Don’t get set into one form, adapt it and build your own, and let it
grow, be like void*.
Empty your mind, be formless, shapeless - like void*.
If you put an int into a void*, it becomes the int.
You put float into a void* it becomes the float.
You put in a char it becomes the char.
Now, void* can flow or it can overflow.
Be void*, my friend.
on 29 Nov 2006 at 2:51 am 2.Joselu said …
Qué haría C sin void….
Gracias Justo!!