Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows
by nopakos on Thursday October 14, 2021 @07:32AM
(#28862928)
From wikipedia: "...[Danny Thorpe] in 1994 while at Borland, he contracted with Santa Cruz startup Cinematronics (David Stafford and Mike Sandige) to build a component model and collision physics engine for a software pinball game. Cinematronics licensed an early version of the pinball engine to Microsoft"
Maybe Borland and Delphi has something to do with the 'T' prefixes.
Source: https://en.wikipedia.org/wiki/Danny_Thorpe
[ Parent
| on HN ]
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows
by mike_san on Thursday October 14, 2021 @02:43PM
(#28868240)
Yep, this is the reason. Danny's initial code used Delphi with this convention. I'm not actually sure why that convention is used there, though. I remember asking Danny why, and I think his answer was just that was the Delphi convention. But it's been a while, so perhaps I have forgotten the details of his answer. I later had to migrate to C++ to integrate with the Windows build. And I retained the naming convention, mostly because it was quicker than changing it and I didn't have a lot of time. But I was always uncomfortable with the T prefix on the ramp class.
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows
by unwiredben on Thursday October 14, 2021 @05:05PM
(#28870100)
I remember using lots of T classes back in the early 90s when I was building software using Turbo Vision, a text user-interface framework bundled with Borland C++ (https://en.wikipedia.org/wiki/Turbo_Vision)
Re:SpaceCadetPinball – Decompilation of 3D Pinball for Windows
by justshowpost on Thursday October 14, 2021 @07:47PM
(#28871839)
Absolutely not. "T" prefix stands for "type" and has its roots in case-insensitive Pascal
/* eg common C style notation involving type identifier and var identifier is illegal in Pascal */
Rect rect;
(* so Pascal requires some distinct identifiers eg *)
rect: TRect;
the other common prefix is "P" which stands for pointer type