realbasic-nug
[Top] [All Lists]

Re: Declare question

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Declare question
From: dda <headspin at gmail dot com>
Date: Wed, 30 Nov 2005 20:32:17 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LExTFK418AzTNn79wkCweREsrIX1BnBRyoGo19/teXWMCgTII8mu+EicCacjN2DmICIwaTKJmi2bT4A2WjQHwla8gG16sz8hlyyhDZxTRUFotc25OxWerTK8iR73sEjuqTFVoNDY2g384Ycvwv0mFALtbkOP+OvJFBTQ1mBQXBw=
References: <eb8fc1930511301017h444304cpc4be0b0a51fe5032 at mail dot gmail dot com> <2052CF98-B873-4090-8C65-0D4A03CB2344 at nc dot rr dot com> <eb8fc1930511301116p108c53f8o9fb7e13e5813e17e at mail dot gmail dot com> <41ED9891-E96B-455F-9DB3-5253CDBCCE06 at realsoftware dot com>
Sir yes Sir!

Now, I guess having ... in Declares would be extra cool. Has anyone
already filed a request?

--
dda
fPic, a Picture object for CLI apps
http://sungnyemun.org/?q=node/7

RBDeveloper Columnist, "Beyond the Limits"
http://rbdeveloper.com

Liste Française Solutions RB
http://www.solutionsrb.com/



On 11/30/05, Mars Saxman <mars at realsoftware dot com> wrote:
>
> On Nov 30, 2005, at 11:16 AM, dda wrote:
>
> > Thank you Christian. I am not sure this would work, so I have taken
> > another route:
> >
> > Declare Sub myfunction Lib myLib (x As Integer, p As Ptr)
> > Declare Sub myfunction Lib myLib (x As Integer, i As Integer)
> > Declare Sub myfunction Lib myLib (x As Integer, b As Boolean)
>
> Yes, that's the way to do it.
>
> (ParamArray and varargs are two completely different solutions to the
> same general problem; they are not compatible. Don't use ParamArray
> on a declare statement.)
>
> Mars Saxman
> REAL Software
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

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