| To: | REALbasic NUG Italian <realbasic-nug dot it at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Calcoli |
| From: | Massimo Valle <maxduepuntozero at yahoo dot it> |
| Date: | Mon, 23 Jul 2007 15:33:51 +0200 |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug dot it at lists dot realsoftware dot com |
| References: | <D20A1020-AB60-460D-8602-FC8CDA0CC3EB at tiscali dot it> <315C50DB-C298-46EB-82A0-04A12BCE7848 at omnidea dot it> <EFB7FCDF-37ED-45C9-8E5F-AD397E1C3976 at yahoo dot it> <80B39F5C-7248-439F-AF44-50AD5C873AC1 at omnidea dot it> |
On 23/lug/07, at 14:13, Gilberto De Faveri wrote: Questo è vero solo per i tipi intrinseci (per i quali, come in altri linguaggi, è possibile l'assegnamento a tipo diverso per ottenere lo stesso risultato).In generale, REALbasic permette di forzare il cast sui tipi: Dim c as Control c = BevelButton1 PushButton(c).Push Exception err If err IsA IllegalCastException then MsgBox "Trying to recast a BevelButton as PushButton!" End if Questo è un class casting che è diverso, mentre qui parlavamo di type casting. In RB non è possibile fare a = Int64(b).Ritengo in definitiva che il problema stia nel fatto che RB implementa la divisione intera solo a 32 bit. Ciononostante il risultato del calcolo è errato quindi se non un bug è un comportamento non corretto. Massimo Valle |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Calcoli, Gilberto De Faveri |
|---|---|
| Next by Date: | Re: Calcoli, Gilberto De Faveri |
| Previous by Thread: | Re: Calcoli, Gilberto De Faveri |
| Next by Thread: | Re: Calcoli, Gilberto De Faveri |
| Indexes: | [Date] [Thread] [Top] [All Lists] |