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


Groups > comp.lang.java.programmer > #7914 > unrolled thread

unicode

Started bybob <bob@coolgroups.com>
First post2011-09-12 12:24 -0700
Last post2011-09-12 15:48 -0700
Articles 4 on this page of 24 — 8 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  unicode bob <bob@coolgroups.com> - 2011-09-12 12:24 -0700
    Re: unicode Knute Johnson <nospam@knutejohnson.com> - 2011-09-12 14:04 -0700
    Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 14:08 -0700
      Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-12 17:31 -0400
        Re: unicode markspace <-@.> - 2011-09-12 16:33 -0700
          Re: unicode Lew <lewbloch@gmail.com> - 2011-09-12 17:46 -0700
            Re: unicode markspace <-@.> - 2011-09-12 20:16 -0700
            Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 22:05 -0700
              Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 22:10 -0700
              Re: unicode Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-09-13 07:18 +0000
          Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-12 20:57 -0400
            Re: unicode markspace <-@.> - 2011-09-12 19:51 -0700
              Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-13 20:17 -0400
                Re: unicode markspace <-@.> - 2011-09-13 19:32 -0700
                  Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-14 11:49 -0700
                  Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-11-07 21:30 -0500
                    Re: unicode markspace <-@.> - 2011-11-07 19:18 -0800
                      Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-11-07 22:47 -0500
                        Re: unicode markspace <-@.> - 2011-11-07 21:12 -0800
            Re: unicode Paul Cager <paul.cager@googlemail.com> - 2011-09-13 04:05 -0700
          Re: unicode Roedy Green <see_website@mindprod.com.invalid> - 2011-09-12 22:02 -0700
            Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-13 20:30 -0400
    Re: unicode Arne Vajhøj <arne@vajhoej.dk> - 2011-09-12 17:29 -0400
      Re: unicode Lew <lewbloch@gmail.com> - 2011-09-12 15:48 -0700

Page 2 of 2 — ← Prev page 1 [2]


#7956

FromRoedy Green <see_website@mindprod.com.invalid>
Date2011-09-12 22:02 -0700
Message-ID<9sot67l0tg6nccokdf01i20a4bi1dcaeld@4ax.com>
In reply to#7931
On Mon, 12 Sep 2011 16:33:14 -0700, markspace <-@.> wrote, quoted or
indirectly quoted someone who said :

>
>
>> And I would not use the term preprocessor - it is Java not C.
>
>
>I've always heard this part of the Java compiler described as a 
>preprocessor.  Is there some other documentation that refers to it 
>differently?

the expansion is done logically ahead of the parse. That is exactly
what a preprocessor is.  I did not say it WAS a preprocessor, just
like one.

Java can have preprocessors. It is just there is not a single official
one. Consider JSP and brethren.
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
The modern conservative is engaged in one of man's oldest exercises in moral philosophy; that is, 
the search for a superior moral justification for selfishness.
~ John Kenneth Galbraith (born: 1908-10-15 died: 2006-04-29 at age: 97) 

[toc] | [prev] | [next] | [standalone]


#7999

FromArne Vajhøj <arne@vajhoej.dk>
Date2011-09-13 20:30 -0400
Message-ID<4e6ff5a5$0$308$14726298@news.sunsite.dk>
In reply to#7956
On 9/13/2011 1:02 AM, Roedy Green wrote:
> On Mon, 12 Sep 2011 16:33:14 -0700, markspace<-@.>  wrote, quoted or
> indirectly quoted someone who said :
>>> And I would not use the term preprocessor - it is Java not C.
>>
>> I've always heard this part of the Java compiler described as a
>> preprocessor.  Is there some other documentation that refers to it
>> differently?
>
> the expansion is done logically ahead of the parse. That is exactly
> what a preprocessor is.

Not really.

Try read:
   http://en.wikipedia.org/wiki/Preprocessor

>                            I did not say it WAS a preprocessor, just
> like one.

It is not like a preprocessor.

> Java can have preprocessors. It is just there is not a single official
> one. Consider JSP and brethren.

JSP is compiled not preprocessd.

(and not relevant in the context either)

Arne

[toc] | [prev] | [next] | [standalone]


#7917

FromArne Vajhøj <arne@vajhoej.dk>
Date2011-09-12 17:29 -0400
Message-ID<4e6e79c7$0$309$14726298@news.sunsite.dk>
In reply to#7914
On 9/12/2011 3:24 PM, bob wrote:
> Why does Java complain when I do this?
>
> 	html = html.replaceAll("\u000A", " ");

Because a line feed is not valid in the source code
there.

The unicode escapes are processed by javac when
reading the source, so the error is not specific to
replaceAll.

Arne

[toc] | [prev] | [next] | [standalone]


#7925

FromLew <lewbloch@gmail.com>
Date2011-09-12 15:48 -0700
Message-ID<1adb9fd1-0379-4223-9073-75697bfbcd5f@glegroupsg2000goo.googlegroups.com>
In reply to#7917
Arne Vajhøj wrote:
> bob wrote:
> Why does Java complain when I do this?
>>
>> 	html = html.replaceAll("\u000A", " ");
> 
> Because a line feed is not valid in the source code
> there.
> 
> The unicode escapes are processed by javac when
> reading the source, so the error is not specific to
> replaceAll.

In this case, bob, the answer was obvious, but in general you should always be specific with your questions.  "Why does Java complain?" doesn't say much about the error, i.e., the text of the message, whether it's a compile-time or run-time error, the specific part of the code that had a problem.  Just as when you are diagnosing the error yourself, people you ask for help need the details.

That is, if you are sincere about wanting help.

But again, this particular question was simple enough that you got away with it.

-- 
Lew

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.java.programmer


csiph-web