criando modulos em D para classe pessoa[AJUDA]
Cym13 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 24 12:49:19 PDT 2017
On Monday, 24 July 2017 at 19:45:03 UTC, dark777 wrote:
> pessoal eu tenho umas classes java e estava portando para D e
> para usar as importaƧoes criei os modules nescessarios todos
> estao dentro da mesma pasta porem ao fazer:
>
> $rdmd principal
>
> ele retorna o seguinte erro:
>
> principal.d(18): Error: octal literals 01023040 are no longer
> supported, use std.conv.octal!1023040 instead
> Failed: ["dmd", "-v", "-o-", "principal.d", "-I."]
>
>
> Os codigos sao os que estao abaixo no pastebin
>
> https://pastebin.com/CYinHWyQ
Sorry, I don't know what language you're talking so I hope I'll
get it right anyway ;)
D used to have octal numbers. They started with a 0 so 0100 ==
64. This was deprecated in favour of std.conv.octal which
explains the error message. To fix, remove the 0:
e.setCEP(1020304)
More information about the Digitalmars-d-learn
mailing list