#lang setup/infotab (define name "pointer-address") (define blurb '("The address of a C pointer")) (define release-notes '((h2 "The address of a C pointer") (p "This module exposes the address of a C pointer as an integer. plt does not normally do this for some reason, so a C extension was necessary. You can use this integer to hash pointers perhaps, such that no two pointers with the same address will have that hash. Or you could display the pointer's address to debug whether or not you are freeing the right one. It's useful for uniquely and completely differentiating C pointers, even if the _cpointer structures that contain them are not eq?. Incidentally if two addresses are equal, then ptr-equal? should always return #t."))) (define scribblings '(("doc.scrbl" ()))) (define categories '(system metaprogramming)) (define primary-file '("main.ss"))