Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #39831

Re: How do I dereference a static string

From Andreas Leitgeb <avl@logic.at>
Newsgroups comp.lang.java.programmer
Subject Re: How do I dereference a static string
Date 2022-11-03 17:38 +0000
Organization A noiseless patient Spider
Message-ID <slrntm7v56.1qde.avl@logic.at> (permalink)
References <282053db-e7b9-4f0a-a66c-12f53021fd55n@googlegroups.com>

Show all headers | View raw


C.D. Altenburg, Ph.D, <cdalten@gmail.com> wrote:
> Say I have the string
> public static string foo = "foo";
> can I just do
> foo = null;
> in order to dereference that string?

For what you're doing, "unreferencing" might be the better word.

The word from subject "dereferencing" rather denotes access of the
referenced thing, like in  System.out.println(foo);

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How do I dereference a static string "C.D. Altenburg, Ph.D," <cdalten@gmail.com> - 2022-11-03 10:05 -0700
  Re: How do I dereference a static string Andreas Leitgeb <avl@logic.at> - 2022-11-03 17:38 +0000
  Re: How do I dereference a static string "e.d.pro...@gmail.com" <e.d.programmer@gmail.com> - 2022-11-03 12:37 -0700
    Re: How do I dereference a static string Arne Vajhøj <arne@vajhoej.dk> - 2022-11-03 20:14 -0400
  Re: How do I dereference a static string Arne Vajhøj <arne@vajhoej.dk> - 2022-11-03 19:29 -0400

csiph-web