another naming idea

Date view Thread view Subject view Author view

From: Godmar Back (gback@cs.utah.edu)
Date: Sun Dec 20 1998 - 20:36:33 EST


I personally like the "makeBlabla" names. I also think they're consistent,
in that makeBlabla *always* returns a Blabla* pointer, but almost never
takes a Blabla pointer as its first argument.

Functions named BlablaFooBar, on the other hand, *always* take a
Blabla pointer as their first argument and operate on it.

The former kind is a creator or factory function, the latter kind
is what you would call a method in Java or C++.
Every class has a set of member functions, and a set of creator
functions.

        - Godmar


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:26 EDT