<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>In the C backend, I would like to share code for records and objects.<br><br><br>As I understand, objects are always pointers.<br><br><br>In my framework, I map typeids to type information.<br><br><br>For this to work, given an object, I need to declare both a record<br>and a pointer to it. I need two typeids for that.<br><br><br>I'm in the position where I need to compute a typeid.<br>Is that feasible?<br><br><br><br>I have two choices if I can't do that:<br><br><br> 1) map from strings instead, where the strings tend to be<br> a string form of a typeid, but where I can make up other forms;<br> quite an inefficiency<br><br><br> 1b) have two maps maybe<br><br><br><br> 2) build a flag into my record data that indicates "record or object"<br><br><br>#1 is easy but I'm leary of the inefficiency.<br>I'll probably try #2 instead then.<br><br><br><br> - Jay<br><br><br> </div></body>
</html>