guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: struct-copy func


From: Ludovic Courtès
Subject: Re: struct-copy func
Date: Mon, 20 Aug 2007 10:35:37 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi,

Good idea.

Kevin Ryde <address@hidden> writes:

>   memcpy (new_st_data, st_data, n_words * sizeof(scm_t_bits));

That's not possible: `struct-copy' must check fields permission and type
before copying.  For instance, `s' fields must be updated, and a struct
with `o' fields cannot be copied I think.

To that end, we should probably factorize code that deals with struct
layout, field permission checks and the likes.

Thanks,
Ludovic.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]