HDF5.jl icon indicating copy to clipboard operation
HDF5.jl copied to clipboard

datatype(String) fails

Open stevengj opened this issue 9 years ago • 4 comments

datatype("this is a string") works, but datatype(String) fails with a MethodError. Seems like a missing method, since e.g. both datatype(1.0) and datatype(Float64) work.

Mentioned on julia-users.

stevengj avatar Oct 13 '16 17:10 stevengj

I'm not sure this is possible? Repeated calls to datatype("this is a string") don't return the same value.

ggggggggg avatar May 07 '17 20:05 ggggggggg

I don't think this makes sense How are we supposed to know the string size, unless we make it variable?

musm avatar Dec 07 '20 21:12 musm

I guess we could make datatype(String) use H5T_VARIABLE

musm avatar Dec 07 '20 21:12 musm

@jmert any thoughts on my proposal here?

musm avatar Dec 07 '20 21:12 musm