Re: [fpc-pascal] Re: Objects in dynamic arrays

2013-11-15 Thread Martin
On 16/11/2013 01:03, Timothy Groves wrote: Here's the code I *actually* have in the method: var index, last : integer; begin last := length (t_volumes) - 1; index := 0; while ((t_volumes [index] <> t_current_volume) and (index < last)) do inc (index); if (index < last) then be

[fpc-pascal] Re: Objects in dynamic arrays

2013-11-15 Thread Timothy Groves
On 13-11-15 07:57 PM, Timothy Groves wrote: How exactly are instantiated classes treated in an array? Can I copy one into another? And if I unallocate an array member, does it automatically Destroy the object? I have objects stored in a dynamic array, and I want to delete an arbitrary recor

[fpc-pascal] Objects in dynamic arrays

2013-11-15 Thread Timothy Groves
How exactly are instantiated classes treated in an array? Can I copy one into another? And if I unallocate an array member, does it automatically Destroy the object? I have objects stored in a dynamic array, and I want to delete an arbitrary record. What I have right now is: var index,

[fpc-pascal] Re: GetAffinity\SetAffinity

2013-11-15 Thread Brian
Alexey Voytsehovich wrote > Just a huge thank you:) > > 2011/1/21 < > michael.vancanneyt@ > >: >> >> >> See >>  man sched_setaffinity >> for the call to do this. >> >> Free Pascal does not have this call predefined, but you can make this >> call. >> >> >> Using the do_syscall you should be able