On Mar 30, 2007, at 5:43 PM, Ruslan Zasukhin wrote:
> On 30/3/07 11:01 PM, "Jonathan Johnson" <[EMAIL PROTECTED]> wrote:
>
>>> But can be something as with EXPORT pragma in C++:
>>>
>>> * If I declare EXPORT for class - then all its methods are exported
>>>
>>> * if I have problematic class as you mention, I not set EXPORT for
>>> the whole
>>> class, but set it for only methods that must be exported.
>>>
>>> Easy? Flexible?
>>
>> Well, they are two different languages and two separate concepts. The
>> equivalent in C++ would be:
>>
>> #if !CONSOLE_RUNTIME
>> class MyClass {}
>> #endif
>>
>> What REALbasic does with safety flags is essentially preprocesses the
>> classes and methods out before sending them to the compiler.
>
> I see,
>
> Btw, what is correct style?
>
> Mark class as safe BEFORE call RegisterClass() of after?
> Or this does not matter in fact ?
>
> For months we have it BEFORE.
As long as it's set up before the end of PluginEntry, it makes no
difference currently. I would say ideally do it before register
class, in case we need to make a copy of the structure for some
reason. But currently, we just store a pointer to your class.
HTH,
Jon
--
Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>