Angus Leeming <[EMAIL PROTECTED]> writes:


| 3. We could lose all of those extra CB functions in FormDocument by making 
| use of the "long" variable that is returned. We'd end up with
| 
| void FormBase::InputCB(FL_OBJECT * ob, long data )
| {
|       FormBase * pre = static_cast<FormBase*>(ob->form->u_vdata);
|       pre->bc_.valid( pre->input( data ) );
| }

Please don't do that. (read: Do not do that!)

casting pointers to integers are not safe and not guaranteed to work.

        Lgb

Reply via email to