🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.asm
Article #1760

Re: Metody programowania

#1760
From: Bogdan (bogdro)
Date: Sat, 29 Mar 2008 09:42
38 lines
2342 bytes
Bartosz Wójcik pisze:
> On Fri, 28 Mar 2008 18:10:24 +0100, Bogdan (bogdro) wrote:
> 
>> SELCHANGE STRUCT
>>    nmhdr     NMHDR <>
>>    chrg      CHARRANGE <>
>>    seltyp    WORD      ?
>>    nmhdr     db ?
>> SELCHANGE ENDS
> 
> no takiego czegos to nawet i w C++ nie skompilujesz (2 razy to samo pole,
> chyba, ze unie sobie zrobisz z "nmhdr", co tez mozna robic w asm),

  Tu był przykład na polach, ale ja ciągle uparcie mówię o 
przeciążeniu funkcji. Można mieć np. 2 funkcje "nmhdr" w jednej klasie 
w C++.

> ale juz:
> 
> SELCHANGE STRUCT
>    nmhdr     NMHDR <>   ; ze pole i struktura maja ta sama nazwe?
>    chrg      CHARRANGE <>
>    seltyp    WORD      ?
> ;  nmhdr     db ?
> SELCHANGE ENDS
> 
> kompiluje sie bezproblemowo pod MASMem

  Pole struktury jest w strukturze, a zmienna typu strukturalnego - 
gdzie indziej (plik, funkcja, ...). Tu nie ma 2 nazw w tej samej 
"przestrzeni", to nie jest przeciążenie. Można to robić w asmie, w C i 
w czymkolwiek, gdzie są struktury.

-- 
Pozdrawiam/Regards - Bogdan                     (GNU/Linux & FreeDOS)
Kurs asemblera x86 (DOS, GNU/Linux):http://rudy.mif.pg.gda.pl/~bogdro
Grupy dyskusyjne o asm:  pl.comp.lang.asm alt.pl.asm alt.pl.asm.win32
www.JabberPL.org www.TorProject.org Soft (EN): miniurl.pl/bogdro-soft
Technical Details
Message-ID: <fsl2uq$81v$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <fsbkje$2da$1@news.mixmin.net> <fsdeqr$rkd$1@inews.gazeta.pl> <fsej6v$bu8$1@news.onet.pl> <fsft4s$fis$1@inews.gazeta.pl> <6u3l528ilfml.8qq3tho8t9r8$.dlg@40tude.net> <fsj8q2$qdo$2@inews.gazeta.pl> <x8hl02oid1ym.1mdlsho2r1aba.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "Bogdan (bogdro)" <bogdan@poczta.gazeta.pl>
Newsgroups: pl.comp.lang.asm
Subject: Re: Metody programowania
Date: Sat, 29 Mar 2008 10:42:47 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 38
Message-ID: <fsl2uq$81v$1@inews.gazeta.pl>
References: <fsbkje$2da$1@news.mixmin.net> <fsdeqr$rkd$1@inews.gazeta.pl> <fsej6v$bu8$1@news.onet.pl> <fsft4s$fis$1@inews.gazeta.pl> <6u3l528ilfml.8qq3tho8t9r8$.dlg@40tude.net> <fsj8q2$qdo$2@inews.gazeta.pl> <x8hl02oid1ym.1mdlsho2r1aba.dlg@40tude.net>
NNTP-Posting-Host: 66.230.230.230
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1206783772 8255 66.230.230.230 (29 Mar 2008 09:42:52 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Sat, 29 Mar 2008 09:42:52 +0000 (UTC)
X-User: bog.d
In-Reply-To: <x8hl02oid1ym.1mdlsho2r1aba.dlg@40tude.net>
User-Agent: Thunderbird 2.0.0.12 (X11/20080213)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit