Talk:Registry

From NESTFE Wiki

Jump to: navigation, search

"valid" as a parameter?

What's the intent of the "valid" parameter? I can understand the intent for get(&valid), but I very much dislike passing in an output parameter by pointer. I don't understand the intent of updated(value,valid) ... won't updated only ever be called once valid data is received?

Counter proposals:

  1. add a command bool valid() to return the validity, instead of passing it in with get()
  2. or, like we did in Config, all values must have an initial default value, so the attribute can never be invalid

--Cory Sharp 21:45, 24 May 2005 (PDT)