www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Bug report (sorry, couldn't register at bugzilla for some reason)

reply "Hannes Steffenhagen" <cubicentertain gmail.com> writes:
I'm trying to use the LuaD library right now... unfortunately, 
I've run into somewhat of a roadblock.

This doesn't work (assertion failure in dmd's backend/cgcs.c:351, 
which has apparently something to do with bitops... there's an 
assert(0) there and I'm not really sure why).

   import luad.all;

   struct Position {
	double x,y;
   }

   void main() {
	auto state = new LuaState;
	state.doString("pos = {x = 1, y = 2}");
	auto pos = state.get!Position("pos");
   }

but this does (note that state.get!(...) simply delegates to 
state.globals.get!(...)).

import luad.all;

struct Position {
	double x,y;
}

void main() {
	auto state = new LuaState;
	state.doString("pos = {x = 1, y = 2}");
	auto pos = state.get!Position("pos");
}

I'm not sure what's the cause and I don't know enough about dmd's 
internals to make an educated guess, but I'm pretty sure this is 
a bug in dmd and not in LuaD.
Dec 25 2013
next sibling parent reply "Hannes Steffenhagen" <cubicentertain gmail.com> writes:
Sorry, I'm not sure how to edit posts, it's 6am and I kinda 
didn't get any sleep yet, so excuse me if I'm a bit confused 
right now. The second example was supposed to be 
state.globals.get!.
Dec 25 2013
parent reply "Jonathan M Davis" <jmdavisProg gmx.com> writes:
On Thursday, December 26, 2013 05:02:48 Hannes Steffenhagen wrote:
 Sorry, I'm not sure how to edit posts
It's not possible to edit posts. There are multiple interfaces to this newsgroup (NNTP, mailing list, and web forum), and the ability to edit posts would not work with that. So, replying to your own post with corrected information is the best that you can do. - Jonathan M Davis
Dec 27 2013
parent reply "Mike Parker" <aldacron gmail.com> writes:
On Saturday, 28 December 2013 at 01:02:54 UTC, Jonathan M Davis 
wrote:
 On Thursday, December 26, 2013 05:02:48 Hannes Steffenhagen 
 wrote:
 Sorry, I'm not sure how to edit posts
It's not possible to edit posts. There are multiple interfaces to this newsgroup (NNTP, mailing list, and web forum), and the ability to edit posts would not work with that. So, replying to your own post with corrected information is the best that you can do.
This is why I wish the web interface had never been called a "forum" in the first place. According to the common usage of that word on the internet, it isn't. People have certain expectations of forum software. When newcomers start using the web interface, they have no idea that it's essentially a web-based newsgroup client and not an actual web forum that can support all the features they expect. This is not the first time I've seen someone lost about how to edit their "forum" posts.
Dec 27 2013
parent reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Sat, Dec 28, 2013 at 06:04:01AM +0000, Mike Parker wrote:
 On Saturday, 28 December 2013 at 01:02:54 UTC, Jonathan M Davis
 wrote:
On Thursday, December 26, 2013 05:02:48 Hannes Steffenhagen wrote:
Sorry, I'm not sure how to edit posts
It's not possible to edit posts. There are multiple interfaces to this newsgroup (NNTP, mailing list, and web forum), and the ability to edit posts would not work with that. So, replying to your own post with corrected information is the best that you can do.
This is why I wish the web interface had never been called a "forum" in the first place. According to the common usage of that word on the internet, it isn't. People have certain expectations of forum software. When newcomers start using the web interface, they have no idea that it's essentially a web-based newsgroup client and not an actual web forum that can support all the features they expect. This is not the first time I've seen someone lost about how to edit their "forum" posts.
[...] We should just call it a newsgroup. Or a mailing list. I prefer the latter, since it's clear that once the mail is sent out, you can't "unsend" it to make further corrections. T -- "You know, maybe we don't *need* enemies." "Yeah, best friends are about all I can take." -- Calvin & Hobbes
Dec 27 2013
parent reply "Dicebot" <public dicebot.lv> writes:
On Saturday, 28 December 2013 at 06:24:06 UTC, H. S. Teoh wrote:
 We should just call it a newsgroup. Or a mailing list. I prefer 
 the
 latter, since it's clear that once the mail is sent out, you 
 can't
 "unsend" it to make further corrections.
Well, it does not really matter how we call it if domain is still "forum.dlang.org" ;)
Dec 29 2013
parent "Hannes Steffenhagen" <cubicentertain gmail.com> writes:
Um yeah... I really don't mean to be disrespectful, but I don't
think this is the place to discuss terminology.
Dec 29 2013
prev sibling parent "Jakob Ovrum" <jakobovrum gmail.com> writes:
On Thursday, 26 December 2013 at 05:01:08 UTC, Hannes 
Steffenhagen wrote:
 I'm not sure what's the cause and I don't know enough about 
 dmd's internals to make an educated guess, but I'm pretty sure 
 this is a bug in dmd and not in LuaD.
Indeed it is a DMD regression. I haven't been able to reduce it yet, so your example is intriguing. It's pretty much a total blocker for using LuaD in 2.064. /insert expletives about DMD
Dec 26 2013