New topic: 

passing a class reference?

<http://forums.realsoftware.com/viewtopic.php?t=30599>

       Page 1 of 1
   [ 5 posts ]                 Previous topic | Next topic         Author  
Message       richo-10999           Post subject: passing a class 
reference?Posted: Thu Oct 22, 2009 8:22 am                        
Joined: Tue Oct 20, 2009 3:01 am
Posts: 4              Hello,

is it somehow possible pass the reference of a class to a function, as it is in 
C, Java & Co.?

And I do mean class and not instance 

I fear not? 

Cheers,
Rich   
                            Top                DaveS           Post subject: 
Re: passing a class reference?Posted: Thu Oct 22, 2009 8:27 am                  
             
Joined: Sun Aug 05, 2007 10:46 am
Posts: 1677
Location: San Diego, CA              you can only pass a reference to an 
instance

what are you trying to accomplish?

you can reference the class anywhere in your project without having to PASS it  
   
_________________
Dave Sisemore
MacPro, OSX 10.5.8 RB2009r2  
                            Top               jens bendig           Post 
subject: Re: passing a class reference?Posted: Thu Oct 22, 2009 8:53 am         
               
Joined: Tue Mar 06, 2007 11:01 am
Posts: 954
Location: Bremen, Germany              Do youj want to call a class-method 
without instantiating the class?
This is not possible, as far as I know (and I don´t miss it)

Jens     
_________________
My favourite Zombie-Movies: Shaun of the Dead, 28 Weeks Later, Titanic  
                            Top               npalardy           Post subject: 
Re: passing a class reference?Posted: Thu Oct 22, 2009 9:44 am                  
      
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 5354
Location: Canada, Alberta, Near Red Deer              jens bendig wrote:Do youj 
want to call a class-method without instantiating the class?
This is not possible, as far as I know (and I don´t miss it)

Shared methods      
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                            Top               npalardy           Post subject: 
Re: passing a class reference?Posted: Thu Oct 22, 2009 9:48 am                  
      
Joined: Sat Dec 24, 2005 8:18 pm
Posts: 5354
Location: Canada, Alberta, Near Red Deer              richo-10999 wrote:Hello,

is it somehow possible pass the reference of a class to a function, as it is in 
C, Java & Co.?

And I do mean class and not instance 

I fear not? 

Cheers,
Rich

Depends on what you're trying to achieve ?
Something like Java's "Class.ForName" ?     
_________________
My web site Great White Software
RBLibrary.com REALbasic learning  
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 5 posts ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to