TIP: Click on subject to list as thread! ANSI
echo: os2dos
to: JONATHAN DE BOYNE POLLARD
from: JOE KELCH
date: 1996-05-10 22:37:00
subject: Msvc++ 1.52

-> One of my colleagues was using Visual C++ yesterday, poor chap, and it
-> wouldn't compile
->   struct Pair {
->       // ...
->       void * operator new[] ( size_t s ) { ... }
->       // ...
->   } ;
->
-> because it thought that he was attempting to declare an array of 
unctions.
-> The same code compiles without a quibble on Borland C++ and Watcom C++.
I've only been working as a programmer/analyst for 7 months.  No, I'm not 
hat
young.  I spent 15 years as a planetarium producer (sadly a dying 
rofession).
When I can actually understand the significance of the above code, I'll know
I'm really a programmer. (-;
Ok, its a structure, and one member is a void pointer to an operator(!).  
hat
does the ( size_t s ) represent?  And can you tell me what such a thing would
be used for?
--- GEcho 1.20/Pro
1:261/3090)
---------------
* Origin: PerryHall BBS Baltimore, MD *-USA-* 14.4k 410.256.7314

SOURCE: echomail via exec-pc

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™.