Ariane Soft PPL2 Pocket Programming DataMite
  #1  
Old 05-26-2010, 10:30 AM
c4esar c4esar is offline
Member
 
Join Date: Mar 2009
Location: Germany
Posts: 41
Default Collections of objects possible?

Hi!

I really spent a lot of time on JAVA-programming the last months.
So today I ran into the problem of having sth like a vector or a list of objects in PPL 1.53.
Would be very glad if anybody could tell me how to do that.
Will I have to save the memory adresses of the objects in a list or sth like that, or is there an easy way?
Because until now I just found the arrays and lists of "simple" variables like e.g. strings or ints.

Perhaps I've just a "plank in front of my head" as we say in Germany

Thanks in advance!
Reply With Quote
  #2  
Old 05-26-2010, 05:29 PM
kornalius kornalius is offline
Administrator
 
Join Date: Apr 2006
Posts: 551
Default

Hi,

You should be able to use objects as pointers.

PHP Code:
List(l$);
Add(l$, new MyClass);
Add(l$, new MyClass);
Add(l$, new MyClass);

ForEach(
l$)
  
l.method(10);
end
__________________
Regards,
Alain Deschenes
ArianeSoft Inc.
http://www.arianesoft.ca
Reply With Quote
  #3  
Old 05-27-2010, 04:05 PM
c4esar c4esar is offline
Member
 
Join Date: Mar 2009
Location: Germany
Posts: 41
Default

Hi!

Thank you very much for your quick respond, Kornalius! I'll try that out.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:38 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright (c) ArianeSoft Inc.
Copyright © 2009 www.ppl-lang.com - All rights reserved
Web Design by BR Web Consulting Ltd