language-implementation
basic question about structure
struct { int integer; float real; } first_structure; So we can refer to a member of the first_structure by writing[详细]
2023-03-06 11:01 分类:问答How is a Java object constructed?
If I create a class like: public class Test{ int id; String name; } Now, i开发者_运维问答f I have to use the class, we have to just create a instance of the class as[详细]
2023-02-19 03:49 分类:问答Interpreted standard library
It\'s common for a programming language to come with a standard library implemented at least partly in the language itself.[详细]
2023-02-13 19:20 分类:问答Python: the mechanism behind list comprehension
When using list comprehension or the in keyword in a for loop context, i.e: for o in X: do_something_with(o)[详细]
2023-02-07 07:21 分类:问答Why can you omit the surrounding parentheses for generators in Python when passing it into a function?
I was just experimenting in Python with different syntax for passing in a generator as an argument to a function, and I realized tha开发者_开发百科t although I\'ve been doing this,[详细]
2023-02-07 04:52 分类:问答Matlab: how to implement a dynamic vector
I am refering to an example like this I have a function to analize the elements of a vector, \'input\'. If these elements have a special property I store their values in a vector, \'output\'.[详细]
2023-02-02 07:15 分类:问答How are java interfaces implemented internally? (vtables?)
C++ has multiple inheritance. The implementation of multiple inheritance at the assembly level can be quite complicated, but there are good descriptions online on how this is normally done (vtables, p[详细]
2023-01-29 23:58 分类:问答How does a Haskell compiler work?
Where can I get some paper/doc/whatever which describes how a Haskell compiler actually works? I read quite a few of the docs of GHC, but stopped after getting a headache. So, something which doesn\'t[详细]
2023-01-29 15:47 分类:问答How is @private implemented?
In Objective-C, I\'m curious how access controls for instance variables, like @private,@protected, etc. are implemented.[详细]
2023-01-29 00:35 分类:问答How does a macro-enabled language keep track of the source code for debugging?
This is a more theoretical question about macros (I think).I know macros take source code and produce object code without evalua开发者_开发百科ting it, enabling programmers to create more versatile sy[详细]
2023-01-06 11:11 分类:问答