Re: hdf_copy() doesnt copy default value..
Brandon Long <[email protected]> Wed, 21 May 2008 14:51:38 -0700
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Organization | Fiction L Networks |
| Message-ID | <20080521215138.GA18785@bl1> |
On 05/21/08 Mario Gliewe uttered the following other thing:
> David Jeske schrieb:
> > I suspect the attributes are not copied simply because hdf_copy was written
> > before attributes existed. I don't understand Mario's use of the term "source
> > default value", what does that mean? The only default values I'm familiar with
> > are the ones supplied in an hdf_get but those are not stored in the tree.
Attributes are copied, but nothing is copied for the actual source node,
just the children of the source node.
Brandon
> Well, even if a node has subnodes, it still may have a value.
> hdf_obj_get() would be the function in question.
> Therefore, if the source node i'm copying from has a value, it could be
> copied as well.
> But i agree with Brandon, its a design decision, once done, it shouldn't
> be changed lightly, as it might break existing applications.
>
> greets
> maG
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
--
"Have been unavoidably detained by the world.
Expect us when you see us." -- Neil Gaiman, _Stardust_
http://www.fiction.net/blong/