« first day (927 days earlier)      last day (4036 days later) » 

@BartekBanachewicz Now I feel bad I thought it was a troll , it was just a poorly asked question
 
> pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language.
ah
I see
 
@ShafikYaghmour it's good it got closed anyay
 
fuck no. lua has no namespaces, @BartekBanachewicz. If I have foo = 42 in test.lua, and then I invoke "ns=require('test')", I get _G.foo, and not _G.ns.foo
 
@Abyx that basically means your test.lua is fucked up
make it
 
12:03 PM
 
local test = {
    foo = 42
}
return test
 
yes, it script returns a table, ns will be set to that table
but it's not "namespaces"
 
@BartekBanachewicz local test.
@Abyx It is just as much as C++'s.
 
ah, lol yes, "local test"
 
yeah.
and Puppy is right, in C++ you can't really do better
 
12:04 PM
in fact, since in Lua you can local away any unpleasant globals, Lua can do better.
 
if you want to fix borked file don't require it, just load from disk and eval
 
yes, but C++ has no modules
@DeadMG C++ has static
 
@Abyx you are not using Lua modules either
 
sir, i am not getting itcan u elaborate it with an example. — user89677 18 secs ago
ahahahaha
ok, fuck this guy
 
@Abyx That can't prevent you from #includeing the declaration everywhere.
 
12:05 PM
you made a plain lua file and tried to require it as a module
 
@TonyTheLion People keep talking about funcitons, I wonder what that is
Maybe they meant "fuck-it-ons"
 
so, basically Lua has no modules or namespaces. it has only tables and one global namespace
 
@kbok lol
 
@Abyx yes.
 
@Abyx A table is a module and a namespace.
 
12:07 PM
meh, I was expecting that require would hack _G =\
 
@Abyx It can be done relatively simply in Lua 5.1
with setfenv.
one of the more basic utilities, that
 
or you can just stick to idioms, y'know
and write the code, not fight it.
 
can't believe that 5.2 removed setfenv, morons
 
Lua sounds messed up.
 
12:08 PM
@BartekBanachewicz Good luck doing that for other people's code.
 
@DeadMG yes, there is no setfenv
 
@Abyx Go back to 5.1.
 
@DeadMG but is has no goto!
 
6
A: Recreating setfenv() in Lua 5.2

Nicol BolasYou cannot change the environment of a function without using the debug library from Lua in Lua 5.2. Once a function has been created, that is the environment it has. The only way to modify this environment is by modifying its first upvalue, which requires the debug library. The general idea wit...

 
(or was goto added in 5.1)
 
12:09 PM
@R.MartinhoFernandes for removing messed up functions?
@Abyx 5.2
Also, from the @lhf
Lua 5.2 has lexical environments, not the magical dynamical ones in Lua 5.1. As mentioned by Nicol, one can still change the environment of a function by changing an upvalue, if one know where it is. — lhf Jan 12 at 11:57
 
well, I'm not using Lua anyway...
 
dynamical, huh?
epix.
 
@Abyx yes you are writing Abyxscript
 
yep
 
@DeadMG he's not a native speaker.
@Abyx how's it going?
 
12:13 PM
@BartekBanachewicz slowly. It's kinda frozen, I didn't touch it for 2 months
 
explicit sucks.
 
@Abyx not really far from my expectations
@R.MartinhoFernandes why's that
 
Xeo
@R.MartinhoFernandes context?
 
Cannot TMP it.
 
Xeo
mhmm
wait
What exactly do you want to tmp in that?
 
12:16 PM
Meh, it wouldn't work anyway without something like VB's Missing.
I can't believe I just said that.
 
Xeo
Okay, I'm not following
Back to raging about how shitty Flash / AS3 is ...
 
wtf is Missing
 
One of VB's four different, incompatible, and all-around totally fucked up "null" values.
 
lol
 
Xeo
Null, Missing, NotHere, LookElsewhere?
 
12:18 PM
@Xeo If I have explicit C(X); template <typename T = Y> C(X, T = y); I cannot get rid of the first ctor.
@Xeo Missing, Empty, Null, and Nothing.
I feel bad that I still know the semantics of all four.
 
Xeo
lol
@R.MartinhoFernandes mhm
 
Maybe slowpoke, but why was Alf suspended?
 
And we had to use hacks to detect some... Oh boy, PTSD.
 
Xeo
noone knows
 
on error resume next
Still my favourite part of VB
 
12:20 PM
@BartekBanachewicz Probably got into one too many heated arguments.
 
regression-tests ftw
 
Goood morning chaps
 
Hi chap
 
Good morning indeed
 
You live in wrong timezones
4
 
12:25 PM
I sneezed
 
Where the hell are you from again cat?
 
I suppose better not try /r/nsfw_gifsound at work?
because NSFW
@Borgleader He is from Poland.
 
@R.MartinhoFernandes It's not.
 
@TonyTheLion He's not a 10 foot pole by any chance is he? (har har har im so punny)
 
@Borgleader he is the south(ern) pole
 
12:29 PM
@Borgleader No, he's a cat. He meows and purrs (this one rarely, he's not the happiest of fellas)
 
@LightnessRacesinOrbit why?
 
fortunately, I can just plonk you instead
this also frees me from having to deal with Telkitty and supporters
 
:)
@Abyx because he likes to be stubborn, apparently
 
Did she reappear last night or what?
 
12:31 PM
@Borgleader today
 
ah i see
I wish Domagoj would reappear :(
 
Yea
If only he told us why he was leaving
or that he was leaving
instead of just leaving
 
@Abyx Because there is nothing wrong with @Telkitty. She is far more pleasant than most of the Loungers who constantly scream for people to plonk her (seriously, wtf is with that? grow up).
 
@LightnessRacesinOrbit 'Most'?
 
12:32 PM
@Tony Perhaps he ventured into the real world.
@LucDanton the "who" is a filter. Unless you already know that, and mean to say that "all of the Loungers who..." would be more appropriate, in which case I'd have to agree
 
oic
 
perhaps I should have used "that" instead
not sure whether "who/that" works the same way "which/that" does
 
@TonyTheLion my thoughts exactly :P
 
Wow, that would have been a great punchline. Two weeks ago. Fuck my memory and l'esprit de l'escalier.
 
12:34 PM
Nevermind.
 
@LightnessRacesinOrbit for real?
 
@R.MartinhoFernandes what
 
@thecoshman yes
 
@LightnessRacesinOrbit well I'll be damned
 
12:37 PM
@thecoshman ok
 
@LightnessRacesinOrbit you're welcome
look at me knowing which spelling to use
 
@LightnessRacesinOrbit I am talking about Nirvana's album. Shut up.
(Thanks)
 
@R.MartinhoFernandes But it was shit
@R.MartinhoFernandes (You're welcome)
 
Considering that 8 bit BASICs of the 70s had range checked and garbage collected strings, it is amazing how much damage C has done.
<3 Carmack
 
So erm... Malta... any' you had experience with that place?
 
12:41 PM
@Borgleader lol yeah
 
@LightnessRacesinOrbit happy now?
 
void f(non_template_argument1, non_template_argument2 const&, TemplateArgument1&&);
void f(non_template_argument1, TemplateArgument2&&, TemplateArgument1&&);
@Xeo the second one will steal the spotlight if I pass a non-const non_template_argument2 lvalue or rvalue, right?
 
@thecoshman :D
 
C++03 question: is there any guarantee that static class members are initialized before main() is called? Also, [citation needed] obviously :)
 
Xeo
12:44 PM
@R.MartinhoFernandes Ya, I think so
Since both are templates, that rule doesn't apply
 
@LightnessRacesinOrbit you're a stickler for punctuation :P
 
so much UB in Assimp /cc @ThePhD
 
Found a note saying that objects at namespace scope can be deferred until after main
 
@jalf I think all statics are. Citation forthcoming.
@jalf Under "as-if"?
 
@thecoshman yea, its a nice place.
 
12:45 PM
Oh, I have no 03 draft here.
@Xeo That to me?
 
@jalf If their construction has no side effects and you never use them, they don't need to be initialized at all!
 
@TonyTheLion a little bit of me is thinking of braving it, and going there for a bit...
 
@thecoshman to do what?
 
Kill people.
 
vacation or work?
@R.MartinhoFernandes oh you!
 
12:46 PM
@Xeo Fuck overload resolution.
 
Xeo
lol
select_overload() <3
Well, doesn't work here, but... still ♥
 
@TonyTheLion ... potentially meet up with my estranged father
@R.MartinhoFernandes perhaps
 
> [C++03: 3.6.2/3]: It is implementation-defined whether or not the dynamic initialization (8.5, 9.4, 12.1, 12.6.1) of an object of namespace scope is done before the first statement of main. If the initialization is deferred to some point in time after the first statement of main, it shall occur before the first use of any function or object defined in the same translation unit as the object to be initialized.
i.e. no
 
@Xeo Meh, DisableIf<is_related<...
 
Xeo
:)
 
12:47 PM
though, not sure whether "defined in namespace scope" is the same thing as "an object of namespace scope"
> [C++11: 9.4.2/6]: Static data members are initialized and destroyed exactly like non-local variables (3.6.2, 3.6.3).
> [C++11: 3.6.2/4]: It is implementation-defined whether the dynamic initialization of a non-local variable with static storage duration is done before the first statement of main. [..]
I believe that this is the intent of the C++03 wording, too.
But it's arguably ambiguous in C++03, from what I can gather.
 
@thecoshman oh I see.
 
@TonyTheLion :S
 
I hope it goes well for you
Also, I don't get unions
 
@TonyTheLion overrated
@TonyTheLion well nothing planned :P
 
12:55 PM
ah, somebody already asked this question, @jalf!
0
Q: Are static class members guaranteed to be initialized before `main` is called?

Lightness Races in OrbitIs there any guarantee that static class members are initialized before main is called?

 
A union with a raw pointer and a padding integer, now you check the pointer != NULL in the union and then do something with the integer in the same union
hmmm
 
though, the idea of escaping to some other country sounds nice
 
not sure I get it
@thecoshman it's always nice. I have the experience. :)
For my holidays I flee to the other side of the world these days.
feels good :)
 
as in weather?
@TonyTheLion I can barely afford to visit the other side of town :(
 
weather is one thing, but being away from everything that constitutes my daily life is nice on occasion
@thecoshman :(
 
12:57 PM
I wonder what the internet is like in Malta?
 
@thecoshman It was fine when I was there.
Weather is very nice this time of the year, although it can be quite windy.
 
where can I find a list of all DRs fixed in c++11?
 

« first day (927 days earlier)      last day (4036 days later) »