Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Correct Behaviour? Was False = 2 ????

From: ryanc:iesco-dms at: 2-Jul-2001 13:21

[agem--crosswinds--net] wrote:
> RE: [REBOL] Re: Correct Behaviour? Was False = 2 ???? > > [ryanc--iesco-dms--com] wrote: > > > > > > > > Quick & Dirty REBOL User Poll. > > > > snip > > > 2. Should 0, None & False be equivalent > > > for 'PICKing values from a series! and > > > return the FIRST or index 0 value whereas > > > True and 1 would return the SECOND or > > > Index 1 value? > > > > Yes, it should, but I dont imagine it very useful. Just would > > make good consistency and sensibility though, and probably an > > elementary change, so therefore should be implemented. I would > > expect it was intended to work this way, but someone probably > > goofed. > > > > pessimistic approach. iam used to yes/no, true/false,.. > also [pick["got it"] false] gives none, like if. > lots more elegant.
Hmm, it is kinda elegant that way.
> OTOH, should [to integer! true] throw error? > theres no need to give logic values implicit integer meaning. > we have [pick[1 0] logic] if we need it :-) >
Logic values do have an implicit integer meaning, 0 false, and 1 true. This is firmly accepted amongst electronics world.
> > > > > > > > > cheers folks, > > > > > > Mark Dickson > > > -- > > > --Ryan > > > > ;-) Volker > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Ryan Cole Programmer Analyst www.iesco-dms.com 707-468-5400