logs archiveBotHelp.net / Freenode / #ada / 2015 / August / 10 / 3
Visaoni
charlie5: not at all. I've been thinking the same thing (but seriously) myself this whole time :)
charlie5
:)
(Action) attempts to submit fbsd PR
beware marino !! ... :)
!quote
Allegra--
It is, in fact, nothing short of a miracle that the modern methods of instruction have not yet entirely strangled the holy curiosity of inquiry ...
-- Albert Einstein
antranigv
that's nice ^^
charlie5
they say he was a cluey bloke
antranigv
what can I express "for i in ["a", "b", "c", "d"]:" in Ada?
in short, I want to loop (:
hmm maybe for i in ("A", "B", "C") loop ?
charlie5
for I in 'a' ... 'c' loop ?
Visaoni
can you just do ('A' .. 'D')?
charlie5: cluey?
antranigv
hm okey, well I wanted to do a loop of eternity symbol.
let me give it a try (:
btw, will \r work in ada?
or \t for tab
Visaoni
nope
antranigv
:(
charlie5
Visaoni: cluey -> clever
antranigv
what should I do?
Visaoni
characters in Ada are a bit... funny
antranigv
hehe
I was used to those in Python.
any example?
Visaoni
Ada.Text_IO.New_Line for example
is the New_Line character
antranigv
what about one back?
Visaoni
the specials have names, rather than being escaped literals
antranigv
aha~
(Action) checks the ARM-05
Visaoni
I don't remember them and end up looking them up every time
charlie5: yes I figured... it's just a rather um, interesting and distinctive phrase
charlie5
(Action) is never quite sure how much local 'flavour' to use
Visaoni
all of it!
it's rather amusing
antranigv
eh, I didn't understand which one I should use :(
charlie5
i think 'cluey' is an english term ... ping Lucretia
Visaoni
maybe charlie5 can point you right on this one... I always end up digging around and grumbling
even if it is kind of an interesting idea
I also might be steering you wrong with Ada.Text_IO
now that I think about it, I'm pretty sure that New_Line is a subprogram to produce a new_line - not the character itself
whoops
antranigv
aha~
Visaoni
I want to say this isn't the prefered package or something anymore, but I might be wrong
Ada.Characters.Latin_1
if you're really desperate, I suppose you could use Character'Val with the ACII codes :P
charlie5
um, not to appear too dumb but what is the eternity symbol ? ... side-ways 8 ? ... or infinity ?
antranigv
hehe, let me show you
charlie5
(Action) may have missed point entirely
antranigv
it's not ANSCII
here http://paste.antranigv.me/pkeqiqxc9/ect6s4/raw
it's the armenian eternity symbol
however, I'm looking to do this
http://paste.antranigv.me/pcvskhhuk/x6ldsq/raw
using the symbols "/ - \ |" to make a, say, loading screen
Visaoni
hm...
charlie5
(Action) 's mind boggles
:)
from the links i got ...
while True: for i in ["/","-","\\","|","/","-","\\","|"]: print "%s\r" % i,
hence , the boggle
antranigv
yes, it prints those, and then deletes one back (via \r), so it looks like a loading
run it in python :P
anyway
charlie5
marino: i'm near kaput for today ... i'll try to do the gps PR tomorrow when a bit fresher
Visaoni
if nothing else you could make an array of characters and loop over that
otherwise, maybe an enumeration and you can set the Image for each? (not sure if this is possible, but seems like it should be?)
but I constantly try to do things that can't be done, so maybe don't get your hopes up :)
antranigv
the thing is, in Python, you don't need to set types, etc
so you miss many things from the concept of programming.
Visaoni
yeah, it's certainly different
I probably wouldn't argue that it can make a number of short things easier and faster
like this, for example
antranigv
agree (:
still, I like ada more
the syntax, etc
Visaoni
but then you run something for a couple weeks and suddenly it blows up because an untried path gets executed
charlie5
(Action) hesitantly thinks he saw saomehwere that you can override the default 'image attribute
Visaoni
I'm pretty sure you can
well, I know you can generally
antranigv
what to do if I get (missing "loop"), but I can see that I did write it? :/
Visaoni
I don't know about specific enumeration values
um... did you save?
antranigv
yupp :/
okey, better to do and try, then ask questions
charlie5
full error msg ?
antranigv: yup, always try yourself 1st ... but also ask at same time ;)
(sometimes asking can be quicker .... sometimes)
antranigv
here http://paste.antranigv.me/pngipcgjj
yup
charlie5
for i in "A" .. "B" loop
antranigv
expected a discrete type < what is discrete type?
^ when compiling with "A" .. "B"
charlie5
for i in 'A' .. 'B' loop
Visaoni
integers, modular types, enumeations, fixed-point types too I believe
darkestkhan
interesting times, starting from today restrictions in energy use are in effect in Poland
charlie5
the quote make it a string
« prev 1 2 3 4 next »