[DIRECT-L] V4MD: question: Xtra which create another Xtra ?

Chuck Neal chuck at mediamacros.com
Fri Jul 16 14:36:17 CDT 2004


You might also try emailing Tom Higgins at Macromedia.  He can probably
direct you to people that can answer this better. :)

-Chuck
--------------------------
Chuck Neal
CEO, MediaMacros, Inc.
chuck at mediamacros.com
http://www.mediamacros.com



-----Original Message-----
From: valentina-beta-bounces at lists.macserve.net
[mailto:valentina-beta-bounces at lists.macserve.net] On Behalf Of Ruslan
Zasukhin
Sent: Friday, July 16, 2004 2:18 PM
To: Macromedia Director; valentina-beta at lists.macserve.net
Subject: Re: [DIRECT-L] V4MD: question: Xtra which create another Xtra ?


On 7/16/04 8:59 PM, "John Mathis" <john2 at inplicity.com> wrote:

Hi John,

> Although I can't think of an applicable example using xtras, I don't 
> think there is any architectural limitation on doing that.
> 
> I know that you can achieve exactly that structure using scripts...I 
> do it all the time...I'm just foggy on the xtras part.

Scripts ? ....

But scripts this is only feature of Lingo itself, right?

We develop Valentina Database Xtra itself. So scripts I think is not
solution...

Practical usage I have show already. In c++, Java, REALbasic versions of
Valentina we have classes

    Vdatabase
    Vtable
    Vfield
    Vcursor
    Vset
    Vlink
    ......


    db = new Vdatabase

    Vtable tbl = db.CreateTable( "Person" )

    Vfield fld = tbl.CreateField( "FirstName", kTypeVarChar, 2000, fIdexed )


As you see we have chain of calls.
Supervisor class can create new instance of other class.

With XDK as far as I see we cannot do this.
Bad.


> John
> 
> ----- Original Message -----
> From: "Ruslan Zasukhin" <sunshine at public.kherson.ua>
> To: <DIRECT-L at LISTSERV.UARK.EDU>
> Sent: Friday, July 16, 2004 12:39 PM
> Subject: [DIRECT-L] V4MD: question: Xtra which create another Xtra ?
> 
> 
>> Hi Director experts,
>> 
>> In C/C++ and REALbasic we can write
>> 
>>     Set* set = field.Find( 5 )
>> 
>> Function find() have create and return object of new class.
>> 
>> And C++ and REALbasic and Java and in each normal OO language This is 
>> MUST BE feature.
>> 
>> In Director/Lingo I never have such syntax.
>> 
>> So can we do in Lingo something as:
>> 
>> 
>>         db = new (Xtra "Vdatabase")
>> 
>>         tbl = db.CreateTable( "Person" )
>> 
>> 
>> Here tbl must be of type (Xtra "VTable")
>> 
>> Is this possible in Lingo?
>> 
>> If yes, then how effective this ?
>> 
>> If no, then why no ?  :-)
>> Lingo looks claims that it have some OO features.
>> So why it not have such basic feature of OO language ?

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------

_______________________________________________
Valentina-beta mailing list
Valentina-beta at lists.macserve.net
http://lists.macserve.net/mailman/listinfo/valentina-beta




More information about the Valentina-beta mailing list