The following code used to work in the old compiler, but fails with a
Syntax error in the new compiler:
if DBLCLK_doubleClickTime = 0 then
#if targetMacOS
#if TargetCarbon
Declare Function GetDblTime Lib "CarbonLib" () as Integer
DBLCLK_doubleClickTime = GetDblTime()
#endif
#if TargetPPC
Declare Function GetDblTime Lib "InterfaceLib" () as Integer
Inline68K("2EB802F0")
DBLCLK_doubleClickTime = GetDblTime()
#endif
#endif
#if targetWin32
Declare Function GetDoubleClickTime Lib "User32.DLL" () as Integer
DBLCLK_doubleClickTime = GetDoubleClickTime()
#endif
end
(DBLCLK_doubleClickTime is a property of a module). If I take the
declares out of the if statement then the code does compile (sort of,
actually there is a different error where it complains about an
ambiguous overloading, but I've logged that as a bug). My question
is, it the above a bug or under the new compiler must declares always
come before code?
-Eric
--
______________________________________________________________________
Eric Harris-Braun eric at glassbead dot com
Glass Bead Software http://www.glassbead.com
---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>
Unsubscribe:
<mailto:realbasic-betas-off at lists dot realsoftware dot com>
Subscribe to the digest:
<mailto:realbasic-betas-digest at lists dot realsoftware dot com>
.
|