Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Dylan > Re: GD/OD incom...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 9 Topic 211 of 289
Post > Topic >>

Re: GD/OD incompatibility of copy-sequence for the value #f

by "tc" <matthias.hoelzl@[EMAIL PROTECTED] > Dec 13, 2006 at 06:43 AM

cgay wrote:
> [...]  As we talked about in IRC, you can always use
>
>   copy-sequence(myseq, end: foo | myseq.size)
>
> to avoid the need to pass #f, so I don't think there's a strong
> argument to be made for treating #f specially on the basis of
> convenience.

You'll get worse performance with this solution than with the "end:
foo" one if you are dealing with a collection type in which size() is
not O(1) (and the implementation of copy-sequence for that type does
not use size() internally).  There are easy workarounds but the short
ones, like

copy-sequence(myseq, end: foo | $unsupplied)

are not ****table.

  Matthias
 




 9 Posts in Topic:
GD/OD incompatibility of copy-sequence for the value #f
"Peter Robisch"  2006-12-05 14:58:33 
Re: GD/OD incompatibility of copy-sequence for the value #f
"cgay" <carl  2006-12-12 10:00:59 
Re: GD/OD incompatibility of copy-sequence for the value #f
"tc" <matthi  2006-12-13 06:43:26 
Re: GD/OD incompatibility of copy-sequence for the value #f
"Chris Page" &l  2006-12-14 18:44:39 
Re: GD/OD incompatibility of copy-sequence for the value #f
peter.robisch@[EMAIL PROT  2007-01-26 01:12:16 
Re: GD/OD incompatibility of copy-sequence for the value #f
peter.robisch@[EMAIL PROT  2007-01-28 12:37:18 
Re: GD/OD incompatibility of copy-sequence for the value #f
Dustin Voss <d-j-v@[EM  2007-03-04 01:47:58 
Re: GD/OD incompatibility of copy-sequence for the value #f
Dustin Voss <d-j-v@[EM  2007-03-04 11:04:03 
Re: GD/OD incompatibility of copy-sequence for the value #f
Hugh Greene <husenet2.  2007-03-06 08:55:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 15:48:33 CST 2008.