bits and pieces
-
Recently, I had to write a function which analyzed a byte, bit by bit. Having never done this before, it was interesting. Then a though occured to me. If I were using VB, C# or Java -- which of these languages would support this? I honestly don't know because I've never bothered with any of them, seeing as how I could always to what I needed in c or c++. Then an interesting question occured to me. Does that make us superior? If you wanted to, could you make a c++ compiler in VB? And if you can't, wouldn't that make VB "programmers" in actuality VB "scripters"? Just a thought. BTW: I'm back after three months of lonely depression and hermit like coding.
-
Recently, I had to write a function which analyzed a byte, bit by bit. Having never done this before, it was interesting. Then a though occured to me. If I were using VB, C# or Java -- which of these languages would support this? I honestly don't know because I've never bothered with any of them, seeing as how I could always to what I needed in c or c++. Then an interesting question occured to me. Does that make us superior? If you wanted to, could you make a c++ compiler in VB? And if you can't, wouldn't that make VB "programmers" in actuality VB "scripters"? Just a thought. BTW: I'm back after three months of lonely depression and hermit like coding.
Adam Arthur wrote: If I were using VB, C# or Java -- which of these languages would support this? This can be done in C# and Java, not in VB. VB6 and below do not have bitwise operators, only logical. Although, I think VB.NET now has bitwise operators, but who the hell cares? Jason Gerard
-
Recently, I had to write a function which analyzed a byte, bit by bit. Having never done this before, it was interesting. Then a though occured to me. If I were using VB, C# or Java -- which of these languages would support this? I honestly don't know because I've never bothered with any of them, seeing as how I could always to what I needed in c or c++. Then an interesting question occured to me. Does that make us superior? If you wanted to, could you make a c++ compiler in VB? And if you can't, wouldn't that make VB "programmers" in actuality VB "scripters"? Just a thought. BTW: I'm back after three months of lonely depression and hermit like coding.
Adam Arthur wrote: If you wanted to, could you make a c++ compiler in VB? of course you can. but it will be slow. you could probably even write one in VB script - if you were insane and/or had something to prove. :) -c
Ah, but a programmer's reach should exceed his grasp, or what are late nights for? Smaller Animals Software, Inc.
-
Adam Arthur wrote: If you wanted to, could you make a c++ compiler in VB? of course you can. but it will be slow. you could probably even write one in VB script - if you were insane and/or had something to prove. :) -c
Ah, but a programmer's reach should exceed his grasp, or what are late nights for? Smaller Animals Software, Inc.
-
Adam Arthur wrote: If I were using VB, C# or Java -- which of these languages would support this? This can be done in C# and Java, not in VB. VB6 and below do not have bitwise operators, only logical. Although, I think VB.NET now has bitwise operators, but who the hell cares? Jason Gerard
I'm 99% sure this code will work If &H0003 And &H0001 = &H0001 Then MsgBox "Bit 0 is set" End If If Not (&H0004 And &H0002 = &H0002) Then MsgBox "Bit 1 is not set" End If James Sonork ID: 100.11138 - Hasaki "I left there in the morning with their God tucked underneath my arm their half-assed smiles and the book of rules. So I asked this God a question and by way of firm reply, He said - I'm not the kind you have to wind up on Sundays." "Wind Up" from Aqualung, Jethro Tull 1971
-
Chris Losinger wrote: you could probably even write one in VB script Not without the help of a "real" language - (be it at least for the FileSystemObject)
The cops still stand around and eat koeksisters - Paul Watson, The Lounge, 2002
errr. ok fine. the point is that VBS is probably capable of doing the real work of handling symbols. output could be a web page with ASM instructions, or a base64 representation of the EXE. -c
Ah, but a programmer's reach should exceed his grasp, or what are late nights for? Smaller Animals Software, Inc.