Is d-apt.sourceforge.net functional?

2017-11-22 Thread Kai via Digitalmars-d-learn

I couldn't find the d-apt-keyring package anywhere

root@d9:~# cat /etc/apt/sources.list.d/d-apt.list
deb http://master.dl.sourceforge.net/project/d-apt/ d-apt main 
#APT repository for D
root@d9:~# LANG=C apt-get -y --allow-unauthenticated install 
--reinstall d-apt-keyring

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package d-apt-keyring

Cf.
http://d-apt.sourceforge.net/
https://sourceforge.net/projects/d-apt/files/dists/d-apt/

Meanwhile I just use 
http://downloads.dlang.org/releases/2.x/2.077.0/dmd_2.077.0-0_amd64.deb ...


newbie question about variables in slices..

2014-05-12 Thread Kai via Digitalmars-d-learn
Hi I am trying to iterate over a mmfile (ubyte[]) and convert it 
to uint


void main(){
MmFile inn = new MmFile(mmData.dat);
ubyte[] arr = cast(ubyte[])inn[];
for(ulong index = 0; indexarr.length; index+=4){
ulong stop = index+4;   
uint num  = littleEndianToNative!uint(arr[index..stop]);
}
if i try to compile this i get the following error:
Error: template std.bitmanip.littleEndianToNative cannot deduce 
function from argument types !(uint)(ubyte[])


but if change the last line to:
uint num  = littleEndianToNative!uint(arr[30..34]);

then it compiles and runs...

Am I doing something wrong with my variables index and stop?
cheers
Kai T