# Links and handlers

**URL:** <https://forum.hdfgroup.org/t/links-and-handlers/1506>\
**Category:** Hdf-forum archives\
**Created:** [November 27, 2009, 11:58am UTC](https://forum.hdfgroup.org/t/links-and-handlers/1506 "2009-11-27T11:58:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francesc\_Alted2](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@Francesc\_Alted2](https://forum.hdfgroup.org/u/Francesc_Alted2)\
**Post date:** [November 27, 2009, 11:58am UTC](https://forum.hdfgroup.org/t/links-and-handlers/1506/1 "2009-11-27T11:58:53Z")

</div>

Hi,

I'm curious on why the `H5Lcreate_*` functions don't return a handler (hid\_t  
type) so that, for example, attributes can be attached to them. Is there a  
way to do that? or links are designed to be second-class citizens?

Thanks,

> **···**
>
> --  
> Francesc Alted

---

<div class="post-metadata">

**Author:** ![epourmal](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/e/c67d28/32.png) [@epourmal](https://forum.hdfgroup.org/u/epourmal)\
**Post date:** [December 1, 2009, 12:11am UTC](https://forum.hdfgroup.org/t/links-and-handlers/1506/2 "2009-12-01T00:11:05Z")

</div>

Hi Francesc,

Uhh, we knew someone will ask 🙂 Currently links cannot have attributes. We thought about it, but decided against it for now.

Elena

> **···**
>
> On Nov 27, 2009, at 5:58 AM, Francesc Alted wrote:
> 
> > Hi,
> > 
> > I'm curious on why the `H5Lcreate_*` functions don't return a handler (hid\_t  
> > type) so that, for example, attributes can be attached to them. Is there a  
> > way to do that? or links are designed to be second-class citizens?
> > 
> > Thanks,
> > 
> > --  
> > Francesc Alted
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![Francesc\_Alted2](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/f/bbe5ce/32.png) [@Francesc\_Alted2](https://forum.hdfgroup.org/u/Francesc_Alted2)\
**Post date:** [December 1, 2009, 12:51pm UTC](https://forum.hdfgroup.org/t/links-and-handlers/1506/3 "2009-12-01T12:51:33Z")

</div>

Hi Elena,

Okay. I just wanted to make sure 😉

Thanks!

A Tuesday 01 December 2009 01:11:05 Elena Pourmal escrigué:

> **···**
>
> > Hi Francesc,
> > 
> > Uhh, we knew someone will ask 🙂 Currently links cannot have attributes.  
> > We thought about it, but decided against it for now.
> > 
> > Elena
> > 
> > On Nov 27, 2009, at 5:58 AM, Francesc Alted wrote:  
> > \> Hi,  
> > \>  
> > \> I'm curious on why the `H5Lcreate_*` functions don't return a handler  
> > \> (hid\_t type) so that, for example, attributes can be attached to them.  
> > \> Is there a way to do that? or links are designed to be second-class  
> > \> citizens?  
> > \>  
> > \> Thanks,
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)
> 
> --  
> Francesc Alted
