6502

Italy

gripho.it

Age: 49

Programmer... some infos on my personal webpage or something more structured on an older version (that is abandonware because I've yet to find a way to create time, so I had to take decisions instead).

42m
revised Is there a portable alternative to C++ bitfields
added 62 characters in body
2h
revised Is there a portable alternative to C++ bitfields
ULL suffix
2h
answered Is there a portable alternative to C++ bitfields
3h
comment Is there a portable alternative to C++ bitfields
It shouldn't be difficult to implement it using C++... for example something like BitField<unsigned long, 3, 12> being a bit field allocated in bit 3...14 of an unsigned long (where the constructor should provide the address of the unsigned long) and supporting assignment from integers and implicit conversion to integer.
3h
comment Call member function from executable
@Bruno: That is the regular C++ syntax to call a member function, but it's meant to be used within a program. If you want to call a member function in an external executable known the address you need something different. Using a C function pointer that simply has an extra this parameter could work (it would work with g++)
4h
comment Call member function from executable
@Bruno: may be it was a static member function? Those are just regular C functions with a funny name...
5h
comment Call member function from executable
@Bruno: Because it's how the C++ language was defined. A method pointer is a pointer of a method of a specific class that must be known at compile time. I'm not saying it's the right thing or the only possible technical solution, but just what it happens to be the C++ language.
5h
revised Call member function from executable
added 493 characters in body
5h
answered Call member function from executable
1d
answered Decorator chain
2d
revised Build nested tree-like dict from an array of dicts with children
added 447 characters in body
2d
revised Build nested tree-like dict from an array of dicts with children
deleted 25 characters in body
2d
revised Build nested tree-like dict from an array of dicts with children
added 356 characters in body
2d
revised Build nested tree-like dict from an array of dicts with children
added 356 characters in body
2d
answered Build nested tree-like dict from an array of dicts with children
2d
comment Ignore optional suffix without preceding delimiter
@PadraicCunningham: the suffix is optional
2d
answered Ignore optional suffix without preceding delimiter
Jul
27
answered if statement evaluates incorrectly
Jul
27
comment An object that describes the current scope
@WorldSEnder: I've added an example, but don't tell anyone I told you this ;-)
Jul
27
revised An object that describes the current scope
added 682 characters in body
1 2 3 4 5