[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: SQR Array Size



You can always simulate a linked list with an array.  It just takes
more work and you are stuck with static memory allocation.


> -----Original Message-----
> From: Johnson, Dan [SMTP:Dan_Johnson@WRIGHTEXPRESS.COM]
> Sent: Monday, January 10, 2000 4:43 PM
> To:   SQR-USERS@list.iex.net
> Subject:      Re: SQR Array Size
>
>         As much as I like SQR and think that it is a pretty good language,
> especially when you consider how easy it is to interface with a database,
> I
> feel that until you are able to dynamically allocate memory and create
> your
> own data types  this will remain a second class language. Without these
> fundamental tools one cannot create a linked list and without a linked
> list
> you cannot create a B-Tree, a Binary Search Tree, or a Hash Table just to
> name a few. There are a number of common Computer Science problems that
> require we these data structures in order to solve the problem with a
> reasonable time complexity.  That's my humble opinion please feel free to
> tell me how obnoxious it is.
>
> Dan.
>
>         Dan,
>
>         >         I also have a quick question. We are still using SQR
> version 3.x and
>         > I was wondering if they have implemented dynamic memory
> allocation
> in any of
>         > the more recent SQR releases.
>
>         You must still allocate the maximum size of the array in the code;
>         this cannot be a variable.   The maximum number of arrays has been
>         increased from 20 to 128.
>
>         Ray
>
> ----------------------------------------------------------------------
>         Ray Ontko   rayo@ontko.com   Phone 1.765.935.4283   Fax
> 1.765.962.9788
>         Ray Ontko & Co.   Software Consulting Services
> http://www.ontko.com/