Just to be clear, do you mean a function outside the iface and impl?

fn create_u32_date_from_str(ds: str) {
        ...
}

Ted

On 2012-02-21, at 10:03, Marijn Haverbeke wrote:

>> It wasn't the cast that felt funny to me, it was the role of 0_u32 in the 
>> expression.  Its only purpose is to give access to the date impl over u32 
>> which is ok, but I'm used to having something like class methods for that.
> 
> Right. As I said, just use constructor functions with different names.
> We may end up supporting this directly in our class system at some
> point, but that seems an easy enough workaround.

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to