[slang-users] USIng the LIST inside of C ...

Ben Duncan linux4ms at aim.com
Wed Jun 13 13:16:03 EDT 2007


I have been pondering this. IS the stack just limited to 2500, or is
that the largest bytes any single item can be?

What I need to do is something that has no preset size initially. An
array would work.
In pseudo code something like this ( actual program would be in C ):

static void Myfunction ()
{
while <NOT AT END>
    get next string-item.
    push string-item onto array

return array to interprator.
}


.... S-Lang code:

variable MyArray = MyFunction(file, attribute) ; .... and so on ..

Thanks ..

davis at space.mit.edu wrote:
> Ben Duncan <linux4ms at aim.com> wrote:
<SNIP>
> If your objects are just strings, then I encourage you to use an array
> of strings.  Then the stack size would not be an issue, and you will
> be able to use a number of the array-based intrinsic functions such as
> "where".  Then you will be playing to the strengths of the
> interpreter.
> 
> Good luck,
> --John
> _______________________________________________
> slang-users-l mailing list
> slang-users-l at jedsoft.org
> http://mailman.jedsoft.org/mailman/listinfo/slang-users-l


-- 
Ben Duncan   - Business Network Solutions, Inc. 336 Elton Road  Jackson MS, 
39212
"Never attribute to malice, that which can be adequately explained by stupidity"
        - Hanlon's Razor


More information about the slang-users-l mailing list