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


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

Re: getFibonacciArray() cannot call getFibonacciArray(int from)

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From Andreas Leitgeb <avl@logic.at>
Newsgroups comp.lang.java.programmer
Subject Re: getFibonacciArray() cannot call getFibonacciArray(int from)
Date Fri, 2 Aug 2019 06:51:16 -0000 (UTC)
Organization A noiseless patient Spider
Lines 16
Message-ID <slrnqk7nb4.36g.avl@logic.at> (permalink)
References <87o91amsyc.fsf@munus.decebal.nl> <qhv6p1$p7p$1@dont-email.me>
Reply-To avl@logic.at
Injection-Date Fri, 2 Aug 2019 06:51:16 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="bdd069effbe79c1de347c71babb60f34"; logging-data="26936"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19cD0GMUzDKkPTe05Hd8TVy"
User-Agent slrn/1.0.3 (Linux)
Cancel-Lock sha1:iUXgXHZKNYBSEeprxhXw66sKtRs=
Xref csiph.com comp.lang.java.programmer:39060

Show key headers only | View raw


Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> wrote:
> If I had to hazard a guess, I would say that in jshell, you can't
> reference a method before you've declared it (lexically speaking).

That was also my guess after reading Cecil's post.

Then I tried it, and found out I know nothing about jshell.

Whatever order I typed into it, it just gave continuation
prompts or standard prompts.  Sometimes it even went back
to standard prompt before I typed the last close brace, and
whatever I typed, I never got anything back.  Even typing 
   System.out.println(42);
gave me nothing but an empty line and a new prompt...

Most likely I've been doing something wrong...

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


Thread

getFibonacciArray() cannot call getFibonacciArray(int from) Cecil Westerhof <Cecil@decebal.nl> - 2019-07-31 11:52 +0200
  Re: getFibonacciArray() cannot call getFibonacciArray(int from) Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2019-08-01 19:15 +0200
    Re: getFibonacciArray() cannot call getFibonacciArray(int from) Andreas Leitgeb <avl@logic.at> - 2019-08-02 06:51 +0000
    Re: getFibonacciArray() cannot call getFibonacciArray(int from) Cecil Westerhof <Cecil@decebal.nl> - 2019-08-03 11:26 +0200
  Re: getFibonacciArray() cannot call getFibonacciArray(int from) Cecil Westerhof <Cecil@decebal.nl> - 2019-08-03 11:11 +0200

csiph-web