Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Flexible arrays in a record
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
corriep




PostPosted: Sat Jan 10, 2009 1:31 pm   Post subject: Flexible arrays in a record

Like the title says is there a way to have a flexible array in a record

like this :

Turing:

type foo :
    record
        bar : flexible array 1 .. 0 of int
    end record
Sponsor
Sponsor
Sponsor
sponsor
Saad




PostPosted: Sun Jan 11, 2009 6:48 pm   Post subject: Re: Flexible arrays in a record

There is no direct way to my knowledge, however if you know how to use classes in Turing what you can do is create a flexible array class which wraps a flexible array. An object of the class inside the record will then be possible. If you do not know how to use classes and you want to learn, there are tutorials linked to in the Turing Walkthrough under Classes Part I/II/III. (Note I will probably be all that you need.)

This topic is where I posted a flexible array class a while ago. The topic relates also relates to your question in a way.

Enjoy Smile
corriep




PostPosted: Mon Jan 12, 2009 9:57 pm   Post subject: RE:Flexible arrays in a record

Thanks for the help, I found a work around for this and im actually glad I did, I'll be sure to remember this for the future
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: