slice[0]
same as ordinary array, only limited to slice[0] and slice[1]
(length(slice) is 2)
you can pass slice of an array (or buffer) to another function without
copying or passing pointer, index and len
On Fri, Nov 22, 2013 at 7:12 PM, Martin Schreiber <[email protected]>wrote:
> On Friday 22 November 2013 19:03:06 August Oktobar wrote:
> > Another idea from Golang: Slices
> >
> > MyArray = array [0..10] of Type;
> >
> > var
> > s: slice [0, 2] of MyArray;
> >
> >
> > slice (keyword) is lightweight wrapper around data (array), no
> allocation,
> > pass by reference.
> >
> > in my example from index 0, length = 2
>
> Can you provide an example to use?
>
> Martin
>
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up
> now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> mseide-msegui-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
>
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk