all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* The implementation of `make-string' is in C
@ 2012-01-31 13:47 Deniz Dogan
  2012-01-31 14:06 ` Andreas Schwab
  2012-01-31 14:37 ` Thien-Thi Nguyen
  0 siblings, 2 replies; 3+ messages in thread
From: Deniz Dogan @ 2012-01-31 13:47 UTC (permalink / raw)
  To: emacs-devel

Why is `make-string' implemented in C?  Why not something like:

   (apply 'string (make-list LENGTH INIT))

?

Deniz



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The implementation of `make-string' is in C
  2012-01-31 13:47 The implementation of `make-string' is in C Deniz Dogan
@ 2012-01-31 14:06 ` Andreas Schwab
  2012-01-31 14:37 ` Thien-Thi Nguyen
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Schwab @ 2012-01-31 14:06 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: emacs-devel

Deniz Dogan <deniz@dogan.se> writes:

> Why is `make-string' implemented in C?  Why not something like:
>
>   (apply 'string (make-list LENGTH INIT))

That creates a lot of cons garbage.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The implementation of `make-string' is in C
  2012-01-31 13:47 The implementation of `make-string' is in C Deniz Dogan
  2012-01-31 14:06 ` Andreas Schwab
@ 2012-01-31 14:37 ` Thien-Thi Nguyen
  1 sibling, 0 replies; 3+ messages in thread
From: Thien-Thi Nguyen @ 2012-01-31 14:37 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: emacs-devel

() Deniz Dogan <deniz@dogan.se>
() Tue, 31 Jan 2012 14:47:14 +0100

   Why is `make-string' implemented in C?  Why not something like:

     (apply 'string (make-list LENGTH INIT))

   ?

Did you try this on your source tree?
What happened?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-31 14:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-31 13:47 The implementation of `make-string' is in C Deniz Dogan
2012-01-31 14:06 ` Andreas Schwab
2012-01-31 14:37 ` Thien-Thi Nguyen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.