slang-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

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


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@xxxxxxxxxxxxx wrote:
Ben Duncan <linux4ms@xxxxxxx> 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@xxxxxxxxxxx
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



[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]