SolveSpace Logo SOLVESPACE -- parametric 2d/3d CAD
Examples
Tutorials
Features
Download
Reference
Technology
Library
Forum
Contact
USER FORUM

(you are viewing a thread; or go back to list of threads)

Source code question: classes starting with a lowercase "h" (by Rich)
I'm reading through the source code right now and I've noticed that there are many classes with names that start with a lowercase h, usually along with another class with the same name, minus the h. For example:

Entity, hEntity
Constraint, hConstraint
Param, hParam
etc.

What does this pattern represent?
Sat Mar 12 2022, 09:20:22
(no subject) (by Rich)
Never mind, I think the "h" means "handle". The hClasses are what gets stored in IdList (if I understand correctly).
Sat Mar 12 2022, 09:32:03
(no subject) (by Paul)
handle is correct.
Sat Mar 12 2022, 14:01:59
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):
© 2008-2022 SolveSpace contributors. Most recent update June 2 2022.