FAQ

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Jan Mercl at Nov 28, 2013 at 11:51 am

    On Thu, Nov 28, 2013 at 12:47 PM, bronze man wrote:
    here is a example:
    It's not about some reflect inconsistency. Values stored in a map are
    not addressable even when not using reflection.

    -j

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Bronze man at Nov 28, 2013 at 12:00 pm
    Values stored in a slice is not addressable when not using reflection,
    Values stored in a array is not addressable when not using reflection,
    Values stored in a field of a struct is not addressable when not using
    reflection,
    Values stored in a map is not addressable when not using reflection.
    The four situations are all not addressable without pointer.
    On Thursday, November 28, 2013 7:51:08 PM UTC+8, Jan Mercl wrote:
    On Thu, Nov 28, 2013 at 12:47 PM, bronze man wrote:
    here is a example:
    It's not about some reflect inconsistency. Values stored in a map are
    not addressable even when not using reflection.

    -j
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Jan Mercl at Nov 28, 2013 at 12:08 pm

    On Thu, Nov 28, 2013 at 1:00 PM, bronze man wrote:
    Values stored in a slice is not addressable when not using reflection,
    Values stored in a array is not addressable when not using reflection,
    Values stored in a field of a struct is not addressable when not using
    reflection,
    Values stored in a map is not addressable when not using reflection.
    http://play.golang.org/p/wYLeJ3W4R2

    -j

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Bronze man at Nov 28, 2013 at 12:16 pm
    Jan Mercl :
    So that is the mean of addressable in golang code.
    So a reflect.Value is addressable when it can addressable from code,and
    reflect.ValueOf from a pointer of some stuff.
    Thanks.
    On Thursday, November 28, 2013 8:08:17 PM UTC+8, Jan Mercl wrote:
    On Thu, Nov 28, 2013 at 1:00 PM, bronze man wrote:
    Values stored in a slice is not addressable when not using reflection,
    Values stored in a array is not addressable when not using reflection,
    Values stored in a field of a struct is not addressable when not using
    reflection,
    Values stored in a map is not addressable when not using reflection.
    http://play.golang.org/p/wYLeJ3W4R2

    -j
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Kevin Gillette at Nov 29, 2013 at 6:54 am

    On Thursday, November 28, 2013 5:00:18 AM UTC-7, bronze man wrote:
    Values stored in a map is not addressable
    That's the only thing you said that's true, and no, reflection does *not* allow
    values to be addressable if they weren't already addressable.

    On Thursday, November 28, 2013 7:51:08 PM UTC+8, Jan Mercl wrote:
    On Thu, Nov 28, 2013 at 12:47 PM, bronze man wrote:
    here is a example:
    It's not about some reflect inconsistency. Values stored in a map are
    not addressable even when not using reflection.

    -j
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedNov 28, '13 at 11:47a
activeNov 29, '13 at 6:54a
posts6
users3
websitegolang.org

People

Translate

site design / logo © 2018 Grokbase