TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: Paul Edwards
from: Paul Markham
date: 1993-10-25 19:24:06
subject: cset++/2

PM>> Fair enough that it should take longer to compile, but 8

 PM>> minutes is ridiculous. If the bottle neck is on one line,

 PM>> how is C Set++ generating the code that makes it quicker?



 PE> By optimizing the other stuff, which is only executed 20% of the time?



Yeah, I guess so.



 PM>> running since the machine was set up. The PC I'm using

 PM>> currently isn't mine, so I won't get any chance to use

 PM>> square brackets on the mainframe. Besides, there are other

 PM>> programmers that need to maintain the code on a dumb

 PM>> terminal.



 PE> So?  I used to convert all my stuff to hex even when I was using a dumb

 PE> terminal.  I had macros to convert from/to trigraphs or SAS style

 PE> brackets.  I always ended up putting it into the single character, so

 PE> that it could print, it could be downloaded to the PC, and only took up

 PE> the room that I expected it to take up.



Sounds like too much trouble. I'll just stich to using their equivalent.



 PM>> I though you were into C++ now. I figured that even though

 PM>> I probably woulnd't be using C++ at work, I'd make the

 PM>> change now just in case since I'd forget about it later.



 PE> With the amount of publicity, I won't forget it if I come across a

 PE> problem. You see, I think there is a hole in C/C++ regarding NULL.  NULL

 PE> is normally (void *)0, which means it will convert 0 into a full pointer,

 PE> so you can pass this to a function, without requiring a prototype (if you

 PE> just passed 0, on a 16-bit machine, it would go to the function as

 PE> 16-bit, instead of 32-bit if you were using the large memory model).

 PE> However, C++ doesn't allow you to go from (void *) to (int *) etc.  I

 PE> haven't looked into it very far. Paul



Publicity? I've never heard of the problem before. The problem with the
NULL must be one that is handled somehow in C++, but I don't know enough
about it (Yes! you heard it folks! Someone on this board actually admitted
they didn't know enough to offer an opinion :-))



Paul



--- GoldED 2.40

* Origin: It's life Jim, but not as we know it (3:711/934.1)
SEEN-BY: 711/934
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.