logs archiveBotHelp.net / Freenode / #ada / 2015 / July / 19 / 2
charlie5
drink ? ... no :)
Lucretia
and verbose mode
yo charlie5
charlie5
(Action) wonders how he got to be labelled the channel drunkard
:P
Lucretia
it's yer typing
charlie5
heya Lucretia
Lucretia
we can tell :D
Visaoni
and you know, he keeps talking about .au
charlie5
my typshing ish jusshht fine !
(hic)
seriously tho, i've had naught but tea today
Visaoni
Lucretia: yeah, gprbuild seems to be passing in -lgnat-5.1 for some reason. before that, it does mention that testmaths.lexch has the wrong format, but then seems to pass it in to gprlib(?) anyway
Lucretia
gprlib? wtf is that?
(Action) has no gprlib
well, it makes sense it's passing in -lgnat5.1 for a 5.1 compiler
check your adalib
it may be looking for a static version you don't have
Visaoni
here it's /usr/libexec/gprbuild/gprlib
Lucretia
oh yeah
ta
never knew about that
Visaoni
the thing is, it's only passing -lgnat-5.1 for that test_maths thing, doesn't do it for sdl_build
and presumably not for that project I tested it on earlier either as it didn't error
Lucretia
it won't for sdl_build, because that only builds the sdl lib
whereas the test_maths is building a shared lib, so it needs to link with libgnat
as will all the tests
Visaoni
ah...
Lucretia
do a make SDL_PLATFORM=linux test.gpr
if it fails to build those, yer compiler's broke
n
Visaoni
it works
Lucretia
k
can't say i'm 100% happy with the naming i've done in this thing
it's mostly plurals for packages, but also using plurals for types
any thoughts?
Visaoni
ah, is that the namespace thing you were talking about?
not sure you'd you manage that, though
I guess you'd need another qualifier if you meant the package/type/variable namespace? that seems likely to be... unpopular :)
Lucretia
yeah
it'd be easy to implement, because when parsing a package, you look in the package namespace, same for types and same for variables, all separate. just makes so much sense
then you'd not run into conflicts like this.
and you wouldn't have to resort to type is some_type ...
so I could have package SDL.Video.Windows is type Windows is ...; and inside function parameters, Open (Window : Windows)
it's no different to being able to overload enumerations
Visaoni
ah, yes
that'd be nice, actually
Lucretia
is there something I can put in a gpr file to stop this warning?
warning: there are no Ada sources in this project
seems gprinstall doesn't copy over my version.gpr or the contents, it just with's it, but it's not installed
is there a way to copy this over?
tkoskine prolly knows
whaleig
I'm having troubles introducing info into an array of booleans, I try to put "false" in its position '0' but it throws me an error, but when I did it earlier (same position), it gave me no problems.
Visaoni
example?
whaleig
Visaoni: ?
Visaoni
and I think some flag will cause a lower-case boolean to throw a warning, so depending on what you're using, you might look there
*boolean literal
whaleig
in both cases I'm using lower-case boolean literals, however
And only one of them works :/
Visaoni
the line that's erroring is what I meant
or something similar
whaleig
Visaoni: I'm checking and I'm getting a "Constraint Error" when I do tat
But the array begins at 0
And I'm addressing the position 0 :/
darkestkhan
whaleig: post gist.github or pastebin
Visaoni
Hm. Well, if you can cut it down and throw it up on a pastebin or something I'll take a look
darkestkhan
it is too freaking hot here for me to bother with guesswork
whaleig
It's kinda buried
I'll try my best
darkestkhan
whaleig: are you sure that array starts at 0? you could always add: Ada.Text_IO.Put_Line (Array_Index_Type'Image (Array_Name'First)); -- right before you try to modify your array (0)
sparre
whaleig: It is generally good style to use 'First instead of absolute indexing.
whaleig
The array is declarated (0..max), darkestkhan
And another one is perfectly fine with having its '0' position adressed
darkestkhan
whaleig: so? if you want to modify first array value then why not just use 'First attribute?
whaleig
It's kinda of a stack
I can't do 'first in this case
https://bpaste.net/show/432a7aa18988
Visaoni: ^
tell me if you need anything else
Visaoni
well, have you verified that ptd.n actually is 0 at that point? I know it's supposed to be, but have you checked?
darkestkhan
(Action) feels like it is C code....
Visaoni
^
whaleig
Visaoni: I'm in gdb right now, and it IS 0
sparre
whaleig: Line 19 doesn't give you an error?
whaleig
Nope
why would it?
sparre
Sorry. Misread the source.
Thought "et" was an in parameter.
darkestkhan
another cryptic source code... 10 years later someone may be reading that code and wondering "what the fu*k author was thinking using these cryptic 2-3 letter names"
sparre
If ptd.n is 0, then your array range doesn't include 0.
(Action) agrees with darkestkhan.
whaleig
sparre: earlier before it allowed me to adress the '0' position of another instance of that same array
It fails now :/
darkestkhan: you kid, but the entire book the profesor gave us had cryptic source code, making it quite "interesting" to study
sparre
Are you sure it is the array type is definite?
Visaoni
what do you get if you print out 'First and 'Last?
whaleig
one sec
Visaoni: gdb or normal execution?
darkestkhan
whaleig: normal execution
whaleig
ok let me check
« prev 1 2 3 next »