Search the web
Sign In
New User? Sign Up
OSCAR-PROJECT · OSCAR is an open source REBOL interpreter
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Series! Blocks, Arrays, Vectors Strings   Message List  
Reply | Forward Message #1013 of 1031 |
Re: [OSCAR Project] Series! Blocks, Arrays, Vectors Strings

On Fri, 14 Dec 2001 Robbo1Mark@... wrote:

> array datatype! variable size ; == array datatype! []
> vector datatype! fixed size ; == vector datatype! []

Switch these two and it's fine. I think the term vector is often used to
mean resizable array.

> Array is a constructor for a fixed datatype! series
>
> Array: function [datatype [datatype!] data [block!] size [integer!]] [
> make array! datatype data size

Not sure about these, but I don't have a better suggestion ATM.

> == vector integer! [1 2 4]
> >> poke b 2 #"a"
> ** Script error: vector a is of type integer! not char!.
> ** near: poke b 2 #"a"

This looks good though.

> By the way, have I got my use of Vector and Array the correct
> way round?

Ah, nope. :-)

Marcus
------------------------------------
If you find that life spits on you
calm down and pretend it's raining




Tue Dec 18, 2001 9:57 pm

d4marcus
Offline Offline
Send Email Send Email

Forward
Message #1013 of 1031 |
Expand Messages Author Sort by Date

I've been doing a lot of thinking about the types of series! PRIMO ought to have available both for ease of use and efficiency. Basically series! have three...
Robbo1Mark@...
robbo1mark
Offline Send Email
Dec 14, 2001
6:55 pm

... Switch these two and it's fine. I think the term vector is often used to mean resizable array. ... Not sure about these, but I don't have a better...
Marcus Petersson
d4marcus
Offline Send Email
Dec 18, 2001
10:01 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help