TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: Paul Markham
from: Paul Edwards
date: 1993-10-24 11:04:20
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?

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

 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.

So?  I used to convert all my stuff to hex even when I was using a dumb
terminal.  I had macros to convert from/to trigraphs or SAS style brackets.
 I always ended up putting it into the single character, so that it could
print, it could be downloaded to the PC, 
and only took up the room that I expected it to take up.  

 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.

With the amount of publicity, I won't forget it if I come across a problem.
 You see, I think there is a hole in C/C++ regarding NULL.  NULL is
normally (void *)0, which means it will convert 0 into a full pointer, so
you can pass this to a function, without requiring a prototype (if you just
passed 0, on a 16-bit machine, it would go to the function as 16-bit,
instead of 32-bit if you were using the large memory model).  However, C++
doesn't allow you to go from (void *) to (int *) etc.  I haven't looked
into it very far.
Paul

---
* Origin: Ten Minute Limit (3: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™.