realbasic-plugins
[Top] [All Lists]

Re: [BUG?] Plugin Class Constructor not compiles in RB 2006/2007

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: [BUG?] Plugin Class Constructor not compiles in RB 2006/2007
From: Jonathan Johnson <jonj at realsoftware dot com>
Date: Fri, 30 Mar 2007 17:01:53 -0500
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <C2335F29 dot 6F06D%sunshine at public dot kherson dot ua>
On Mar 30, 2007, at 5:43 PM, Ruslan Zasukhin wrote:

> On 30/3/07 11:01 PM, "Jonathan Johnson" <jonj at realsoftware dot com> 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
jonj at realsoftware dot com
REAL Software, Inc.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>