Language Issues: Local temporary variables
Use local temporary variables to avoid repeatedly de-referencing a pointer structure
Example:
x = global_ptr->record_str->a;
y = global_ptr->record_str->b;
Use:
tmp = global_ptr->record_str;
x = tmp->a;
y = tmp->b;
Previous slide
Next slide
Back to first slide
View graphic version