This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Scala @strictfp support?

1 reply
hedzer.westra
Joined: 2009-01-19,
User offline. Last seen 42 years 45 weeks ago.

Hi,

the Scala language has replaced the Java keywords transient, native and
volatile with annotations (simply @transient, @native and @volatile), but I
couldn't find a similar annotation for strictfp. Is there any specific
reason for this omission? (Not that I'm especially keen on using strictfp -
I'm just curious about why this detail seems to be missing).

I've tried looking this up on Google, this list's archive and various
documents on Scala (LangRef, VScaladoc, etc.), but could not find it - I
hope this isn't a repeated newbie question..

Regards,
Hedzer

---------------------------------------------------------------------------
This message (including any attachments) is confidential and may be
privileged. If you have received it by mistake please notify the sender by
return e-mail and delete this message from your system. Any unauthorised
use or dissemination of this message in whole or in part is strictly
prohibited. Please note that e-mails are susceptible to change. ABN AMRO
Bank N.V, which has its seat at Amsterdam, the Netherlands, and is
registered in the Commercial Register under number 33002587, including its
group companies, shall not be liable for the improper or incomplete
transmission of the information contained in this communication nor for any
delay in its receipt or damage to your system. ABN AMRO Bank N.V. (or its
group companies) does not guarantee that the integrity of this
communication has been maintained nor that this communication is free of
viruses, interceptions or interference.
---------------------------------------------------------------------------

Jon Pretty
Joined: 2009-02-02,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala @strictfp support?

Hi Hedzer,

hedzer.westra@nl.abnamro.com wrote:
> the Scala language has replaced the Java keywords transient, native and
> volatile with annotations (simply @transient, @native and @volatile), but I
> couldn't find a similar annotation for strictfp. Is there any specific
> reason for this omission? (Not that I'm especially keen on using strictfp -
> I'm just curious about why this detail seems to be missing).

Doing a quick grep of the Scala source code, strictfp isn't used (but
the compiler is vaguely aware of it, for completeness, presumably). The
same goes for native.

I suspect the reason it's not supported is lack of demand. Java got
away without it until version 5, didn't it?

Cheers,
Jon

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland