Hello, All.

   At first glance subj is not a big deal, but C++ language is moving toward 
strict type 
checking and on this way a problem appear: how to initialize variables? NULL 
cannot be 
assigned to integers (well, it can, but produce annoying warning in current 
versions and 
may be prohibited in future ones), 0 cannot be assigned to pointers. So, there 
is no way 
to write code which is smoothly compiled on both x86 and x86_64.
   I see three ways to solve this situation:
1) Make handle unconditionally a integer;
2) Make handle unconditionally a pointer;
3) Define macro NULL_HANDLE which has to be used for initialization.

   Actually, 2) is not an option because old binaries will be broken on 64 bits 
platforms.

   Opinions?

-- 
   WBR, SD.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to